mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-07-11 22:51:38 -07:00
feat(local-watch-history): auto set progress on completed status
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user