feat(local-watch-history): auto set progress on completed status

This commit is contained in:
Benexl
2025-07-26 22:57:42 +03:00
parent 8abfaed7bf
commit e602a6fbc4
@@ -174,6 +174,13 @@ class MediaRegistryService:
index_entry.progress = progress
if status:
index_entry.status = status
if (
progress
and status == UserMediaListStatus.COMPLETED
and media_item
and media_item.episodes
):
index_entry.progress = str(media_item.episodes)
else:
if not index_entry.status:
index_entry.status = UserMediaListStatus.WATCHING