vosmiic / jellyfin-ani-sync

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

How to fix not found anime in MAL #92

Closed PythonCoderAS closed 5 months ago

PythonCoderAS commented 7 months ago

Describe the bug The plugin cannot find and update the special episodes "Otona no Bouguya-san (Rimen)". (MAL Link: https://myanimelist.net/anime/39325/Otona_no_Bouguya-san_Rimen). I tried searching https://github.com/Anime-Lists/anime but it has that special (https://github.com/Anime-Lists/anime-lists/issues/57). I don't know how to add the proper MAL mapping however. How would I go about adding the correct mapping?

Logs

[2023-12-11 18:00:57.092 +00:00] [INF] [19] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Infuse" "7.6.4" playing "A Man with Naked Glasses". Stopped at "260693" ms
[2023-12-11 18:00:57.632 +00:00] [INF] [52] jellyfin_ani_sync.UpdateProviderStatus: (Tvdb) Anime reference found in anime list XML
[2023-12-11 18:00:57.632 +00:00] [INF] [52] jellyfin_ani_sync.UpdateProviderStatus: Retrieving provider IDs from offline database...
[2023-12-11 18:00:57.637 +00:00] [INF] [52] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Playback stop tracker found, processing stop : "24D7D6C9-C635-4118-9EAC-E4F7FDD7FB35-5c23ca7115144a1cbb3e9bc748b54a40-ffc0d735b80e6a2969123f66e134df02"
[2023-12-11 18:00:57.638 +00:00] [INF] [52] Jellyfin.Plugin.PlaybackReporting.Data.PlaybackTracker: PlaybackTracker : Adding Stop Event : 12/11/2023 18:00:57
[2023-12-11 18:00:57.638 +00:00] [INF] [52] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Saving playback tracking activity in DB
[2023-12-11 18:00:58.156 +00:00] [INF] [70] jellyfin_ani_sync.UpdateProviderStatus: Retrieved provider IDs
[2023-12-11 18:00:58.157 +00:00] [INF] [70] jellyfin_ani_sync.UpdateProviderStatus: Using provider Mal...
[2023-12-11 18:00:58.370 +00:00] [INF] [70] jellyfin_ani_sync.Api.MalApiCalls: Starting search for anime (GET https://api.myanimelist.net/v2/anime?q=ArmorShopforLadies%26Gentlemen&fields=id%2Ctitle%2Calternative_titles%2Cnum_episodes%2Cstatus)...
[2023-12-11 18:00:58.891 +00:00] [INF] [58] jellyfin_ani_sync.Api.MalApiCalls: Search complete
[2023-12-11 18:00:58.952 +00:00] [WRN] [58] jellyfin_ani_sync.UpdateProviderStatus: (Mal) Series not found

To Reproduce Steps to reproduce the behavior:

  1. Have the episode loaded in Jellyfin
  2. Watch episode

Expected behavior I expected the update to happen successfully.

Screenshots N/A

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

vosmiic commented 7 months ago

What other anime are you seeing this issue with? We do not deal with outliers.

Specials rarely work with the plugin because finding the relation between the provider and Jellyfin is usually difficult.

PythonCoderAS commented 7 months ago

Just this one for now, but I'm pretty sure most of the other specials with likely break. Is there a way to manually override the default search by grouping some episodes with their corresponding entry in MAL?

vosmiic commented 6 months ago

Not really unfortunately, I can take a look at the OVA support but there isn't much that can be done about the detection. Since providers have them configured in different ways it makes it very difficult to map to them.

PythonCoderAS commented 6 months ago

There's an additional case where it seems to be broken and that is with h-anime. These have an Anilist ID in metadata but for some reason they can't be found by the plugin.

vosmiic commented 6 months ago

There's an additional case where it seems to be broken and that is with h-anime. These have an Anilist ID in metadata but for some reason they can't be found by the plugin.

Not entirely sure what this means, is h-anime the title of an anime? Is this something that will be fixed with #95?

PythonCoderAS commented 6 months ago

There's an additional case where it seems to be broken and that is with h-anime. These have an Anilist ID in metadata but for some reason they can't be found by the plugin.

Not entirely sure what this means, is h-anime the title of an anime? Is this something that will be fixed with #95?

h-anime in this case is the general term to refer to hentai. There are two classes of these, the obvious stuff and the shorts that get released seasonally.

vosmiic commented 5 months ago

Ah okay. Hopefully #95 fixes this then.

vosmiic commented 5 months ago

So the specials still use the old title matching lookup method which is failing, hence why you are hitting into the issue. I can see that specials are given TVDB episode IDs, but I have cross referenced the anime list XML (including the movieset version) and they don't contain any of the specials a searched for.

Don't think there is much that can be done in this scenario, specials are not really well supported by the plugin.