feat(mpv): update episode progress timestamp

This commit is contained in:
Benex254
2024-08-13 01:05:21 +03:00
parent 62878311c6
commit 571ab488f8

View File

@@ -95,7 +95,14 @@ class MpvPlayer(object):
current_episode_number = (
fastanime_runtime_state.provider_current_episode_number
)
config.update_watch_history(anime_id_anilist, str(current_episode_number))
# update local progress
config.update_watch_history(
anime_id_anilist,
str(current_episode_number),
start_time=self.last_stop_time,
total_time=self.last_total_time,
)
# update episode progress
if config.user and current_episode_number:
AniList.update_anime_list(