Skip to content

Commit

Permalink
Handle TMDB One Piece if custom mapping is present
Browse files Browse the repository at this point in the history
  • Loading branch information
reconman committed Jan 14, 2024
1 parent 6159bce commit c5356d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plexanisync/anilist.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def match_to_plex(self, anilist_series: List[AnilistSeries], plex_series_watched
continue
# For multiple seasons with the same id
# If the start of this season has been mapped use that.
if mapped_start != 1:
# Also use the watched episode count directly for series like TMDB One Piece
if mapped_start != 1 or plex_season.first_episode > match.watched_episodes:
match.watched_episodes = plex_season.watched_episodes - mapped_start + 1
else:
match.watched_episodes += plex_season.watched_episodes
Expand Down

0 comments on commit c5356d6

Please sign in to comment.