Repository navigation
Start at 0:00 when seeking to the start of an audiobook or episode - #7363
Conversation
Bot-MArley
left a comment
There was a problem hiding this comment.
Note
This comment was written by Claude and posted by Bot-MArley on behalf of the Music Assistant maintainers.
This fixes seeking to 0:00 on an audiobook or episode: seek() now calls a private _play_index so a position of 0 means "start at 0" instead of "use the resume point", while the public play_index keeps its old behaviour for clients. Most of the diff is the unchanged body moving to the bottom of the file.
I read the whole diff and found nothing to change. seek() still has @handle_play_action and its own permission check, and the other play_index callers behave as before. CI is green, so this is waiting for a maintainer to review and merge.
Bot-MArley
left a comment
There was a problem hiding this comment.
Note
This comment was written by Claude and posted by Bot-MArley on behalf of the Music Assistant maintainers.
This only brings the branch up to date with dev (the rebase after #7395); the PR's own change to seeking to 0:00 is unchanged and I found no issues in it.
Requested changes: none. Checks are green, so it waits for a maintainer to merge; the earlier approval was on the previous commit.
|
@fmunkes can you have another look? |
What does this implement/fix?
Seeking to 0:00 (seek bar, chapter 1) restarted an audiobook or episode at its resume point, because
play_indexread 0 as "no position given". The publicplay_indexkeeps that behaviour for clients, andseek()now calls a private_play_indexdirectly. Most of the diff is the unchanged body moving to the bottom of the file. The actual change:Related issue (if applicable):
Types of changes
bugfixnew-featureenhancementnew-providerbreaking-changerefactordocumentationmaintenancecidependenciesChecklist
pre-commit run --all-filespasses.pytestpasses, and tests have been added/updated undertests/where applicable.music-assistant/modelsis linked.music-assistant/frontendis linked.