Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show is marked as completed even when AniList status is REPEATING #267

Open
evie-lau opened this issue Jul 14, 2024 · 0 comments
Open

Show is marked as completed even when AniList status is REPEATING #267

evie-lau opened this issue Jul 14, 2024 · 0 comments

Comments

@evie-lau
Copy link

evie-lau commented Jul 14, 2024

I'm rewatching a show, and have set my AniList status to rewatching, but log shows that it comes through the following code and sets the show to completed.

if (
watched_episode_count >= anilist_total_episodes > 0
and anilist_media_status == "FINISHED"
):
# series completed watched
logger.warning(
f"Plex episode watch count [{watched_episode_count}] was higher than the "
f"one on AniList total episodes for that series [{anilist_total_episodes}] | updating "
"AniList entry to completed"
)
self.__update_episode_incremental(series, watched_episode_count, anilist_episodes_watched, "COMPLETED", plex_rating)
return

I marked my Plex series as unwatched before I started to rewatch it, so not sure how it's getting seen as having a higher Plex episode watch count.

Here's the test I did.
AniList series: 4181, set to Rewatching, 11 eps watched
Plex: series is watched up to episode 11, finish watching 12 to trigger script
Logs:

  2024-07-14 12:55:01 [ANILIST] Matching Plex series to Anilist
  2024-07-14 12:55:01 [ANILIST] --------------------------------------------------
  2024-07-14 12:55:01 [ANILIST] Custom Mapping of Title found | title: Clannad | anilist id: 2167 | total watched episodes: 22 | seasons with the same anilist id: [1]
  2024-07-14 12:55:01 [ANILIST] Custom Mapping of Title found | title: Clannad | anilist id: 4181 | total watched episodes: 24 | seasons with the same anilist id: [2]
  2024-07-14 12:55:01 [ANILIST] Updating series: Clannad: After Story | Episodes watched: 24
  2024-07-14 12:55:01 [ANILIST] Found AniList entry for Plex title: Clannad
  2024-07-14 12:55:01 [ANILIST] Series year did not match however skip year check was given so adding anyway => Plex has 2007 and AniList has 2008
  2024-07-14 12:55:01 [ANILIST] Plex episode watch count [24] was higher than the one on AniList total episodes for that series [24] | updating AniList entry to completed

It seems that the watched episodes grabbed from AniList don't account for the repeating status? also the Plex episode count isn't right either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant