vosmiic / jellyfin-ani-sync

Synchronize anime watch status between Jellyfin and anime tracking sites.
GNU General Public License v3.0
268 stars 21 forks source link

jellyfin_ani_sync.UpdateProviderStatus: Video does not contain required index numbers to sync; skipping #102

Closed sonicjhon1 closed 9 months ago

sonicjhon1 commented 10 months ago

Describe the bug Everytime I marked an episode or a show as complete, I got: jellyfin_ani_sync.UpdateProviderStatus: Video does not contain required index numbers to sync; skipping. AniList doesn't seem to update as well because of the error. I've made sure the metadata for the show is present from Jellyfin.

Logs

jellyfin_ani_sync.UpdateProviderStatus: Video does not contain required index numbers to sync; skipping
jellyfin_ani_sync.UpdateProviderStatus: Video does not contain required index numbers to sync; skipping
jellyfin_ani_sync.UpdateProviderStatus: Video does not contain required index numbers to sync; skipping

To Reproduce Steps to reproduce the behavior:

  1. Click on any show
  2. Click "Mark as watched" / "Mark as played"
  3. See error

Expected behavior Successfully syncs to AniList

Screenshots image Episode metadata in Jellyfin. image Show metadata in Jellyfin

Desktop (please complete the following information):

Additional context I'm using AniList as a tracker.

vosmiic commented 10 months ago

Odd. Its unable to find either the season or episode index number, but obviously they are populated (its the season and episode number in that first screenshot). Does this also happen after watching shows, or only when marking them as played?

vosmiic commented 10 months ago

I have been able to replicate the issue, will investigate further

vosmiic commented 10 months ago

I can only seem to trigger this on media that has an "awkward" composition. Are you finding that it is breaking only for this single media or are you hitting into this issue on all of your media?

sonicjhon1 commented 10 months ago

Odd. Its unable to find either the season or episode index number, but obviously they are populated (its the season and episode number in that first screenshot). Does this also happen after watching shows, or only when marking them as played?

Sorry for the late reply, but yes. It also happen after watching the episode.

I can only seem to trigger this on media that has an "awkward" composition. Are you finding that it is breaking only for this single media or are you hitting into this issue on all of your media?

I've tried multiple media, and all of them seems to be getting this error. I've made sure the season and episode number are both present in Jellyfin too. Could you clarify what an "awkward composition" media is?

vosmiic commented 10 months ago

Could you clarify what an "awkward composition" media is?

What I mean by that is a show that has an odd numbering when it comes to series, or has no real season numbering. But I can see that you are watching a normal show that doesn't have those issues.

I presume this also happens on the non-beta version of the plugin?

sonicjhon1 commented 10 months ago

I presume this also happens on the non-beta version of the plugin?

Yes, I've tried with 2.9.0.0 and it happens too.

vosmiic commented 10 months ago

I am still investigating this, but am struggling to consistently replicate it.

Don't think it will help but could you try refreshing your metadata (Scan Library -> Replace all metadata). Do note that this will, as the mode suggests, completely refresh the metadata for the media contained in the library. If you would prefer not to do this I understand.

sonicjhon1 commented 9 months ago

Don't think it will help but could you try refreshing your metadata (Scan Library -> Replace all metadata). Do note that this will, as the mode suggests, completely refresh the metadata for the media contained in the library. If you would prefer not to do this I understand.

Hello, I just did this to the entire Library and the plugin works properly now (most of the time). Sometimes it still errors out and doesn't update anilist but after I re-"Replace all metadata" for the Show that is erroring out, it works properly.

vosmiic commented 9 months ago

Glad to hear it, probably just some metadata issues then.