Another attempt to fix the Jellyfin issue

This time, we simplify the progress updates, aggressively mark tracks as
100 played if they are marked played_to_completion, and implement a hack
for Jellyfin spamming us with progress updates less than a second apart.
This commit is contained in:
2023-01-31 10:28:54 -05:00
parent 6fc51d9296
commit ca57eabf87
3 changed files with 19 additions and 19 deletions

View File

@ -77,7 +77,6 @@ def check_scrobble_for_finish(
scrobble.in_progress = False
scrobble.is_paused = False
scrobble.played_to_completion = True
scrobble.playback_position_ticks = scrobble.media_obj.run_time_ticks
scrobble.save(
update_fields=["in_progress", "is_paused", "played_to_completion"]
)