RickDB / PlexAniSync

Sync Plex anime library to AniList
GNU General Public License v3.0
292 stars 45 forks source link

One Piece does not work anymore with TMDB #212

Open Soitora opened 1 year ago

Soitora commented 1 year ago

Discussed with @Jaynator495 and @reconman in April on the Discord

Might have broken in #174 1.3.21 works, 1.3.22 and later doesn't work

This is with TheMovieDB due to their absolute numbers while keeping season format

I noticed this again yesterday when I watched One Piece and it updated to episode 9600 or something

image

buthed010203 commented 1 year ago

A bit of a hack but maybe there could be an optional boolean added to the mapping schema that could toggle between the current logic of summing the watch counts of seasons mapped to the same AL id (when no mapped_start is specified) and simply taking the max watched episode id of any of the mapped seasons. https://github.com/RickDB/PlexAniSync/blob/a8df9cbb122494be556fdd0a29ad718b437358ff/plexanisync/anilist.py#L93-L96

Edit: What i'm currently doing is adding start: 2 on every season to make it take the top path which works. It's off by one episode in AL now but it's certainly better than keeping it up to date manually.

rcdailey commented 1 year ago

I'd like to share that I also had trouble with One Piece. here's the logs:

[PLEX] Retrieving anime series from section: Anime Series
[PLEX] Found 361 anime series in section: Anime Series
[PLEX] Found matching anime series
[PLEX] Retrieving watch count for series
[PLEX] 118 episodes watched for One Piece season 17
[PLEX] 33 episodes watched for One Piece season 18
[PLEX] 98 episodes watched for One Piece season 19
[PLEX] 14 episodes watched for One Piece season 20
[PLEX] 191 episodes watched for One Piece season 21
[PLEX] Found 1 watched series
[ANILIST] Matching Plex series to Anilist
[ANILIST] --------------------------------------------------
[ANILIST] Failed to find valid season title match on AniList for: One Piece season 17
[ANILIST] Failed to find valid season title match on AniList for: One Piece season 18
[ANILIST] Failed to find valid season title match on AniList for: One Piece season 19
[ANILIST] Failed to find valid season title match on AniList for: One Piece season 20
[ANILIST] Failed to find valid season title match on AniList for: One Piece season 21
Ninelpienel commented 10 months ago

Still no proper solution to the problem?

reconman commented 10 months ago

I patched PlexAniSync so TMDB One Piece works with a mapping like this:

  - title: "One Piece"
    seasons:
      - season: 1
        anilist-id: 21
      - season: 2
        anilist-id: 21
      - season: 3
        anilist-id: 21
      - season: 4
        anilist-id: 21
      - season: 5
        anilist-id: 21
      - season: 6
        anilist-id: 21
      - season: 7
        anilist-id: 21
      - season: 8
        anilist-id: 21
      - season: 9
        anilist-id: 21
      - season: 10
        anilist-id: 21
      - season: 11
        anilist-id: 21
      - season: 12
        anilist-id: 21
      - season: 13
        anilist-id: 21
      - season: 14
        anilist-id: 21
      - season: 15
        anilist-id: 21
      - season: 16
        anilist-id: 21
      - season: 17
        anilist-id: 21
      - season: 18
        anilist-id: 21
      - season: 19
        anilist-id: 21
      - season: 20
        anilist-id: 21
      - season: 21
        anilist-id: 21
      - season: 22
        anilist-id: 21
Ninelpienel commented 10 months ago

Wow, thank you!

Ninelpienel commented 10 months ago

Oh, does this also work on other series? Like Hunter x Hunter?

buthed010203 commented 10 months ago

@reconman thanks for fixing the episode counting so I no longer need the start: 2 hack

reconman commented 10 months ago

Oh, does this also work on other series? Like Hunter x Hunter?

Yes if you provide a similar mapping to the one I posted.