Fix Mopidy resuming messing things up

This commit is contained in:
2023-01-16 16:12:01 -05:00
parent 0634b94368
commit 6cdcf4ff6f
4 changed files with 40 additions and 33 deletions

View File

@ -76,6 +76,9 @@ def check_scrobble_for_finish(scrobble: "Scrobble") -> None:
settings, "PODCAST_COMPLETION_PERCENT", 25
)
if scrobble.percent_played >= completion_percent:
logger.debug(
f"Beyond completion percent {completion_percent}, finishing scrobble"
)
scrobble.in_progress = False
scrobble.is_paused = False
scrobble.played_to_completion = True