PlexAniSync icon indicating copy to clipboard operation
PlexAniSync copied to clipboard

One Piece does not work anymore with TMDB

Open Soitora opened this issue 1 year ago • 8 comments

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

Soitora avatar Aug 24 '23 07:08 Soitora

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.

buthed010203 avatar Sep 18 '23 14:09 buthed010203

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

rcdailey avatar Nov 05 '23 19:11 rcdailey

Still no proper solution to the problem?

Ninelpienel avatar Jan 13 '24 17:01 Ninelpienel

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

reconman avatar Jan 14 '24 18:01 reconman

Wow, thank you!

Ninelpienel avatar Jan 14 '24 18:01 Ninelpienel

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

Ninelpienel avatar Jan 14 '24 18:01 Ninelpienel

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

buthed010203 avatar Jan 14 '24 18:01 buthed010203

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

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

reconman avatar Jan 14 '24 18:01 reconman