ZeroQI / Hama.bundle

Plex HTTP Anidb Metadata Agent (HAMA)
GNU General Public License v3.0
1.21k stars 113 forks source link

"Season 0" specials being mapped when they shouldn't be #538

Open Praxinator opened 1 year ago

Praxinator commented 1 year ago

https://github.com/ZeroQI/Hama.bundle/blob/b2a0ac4b57c83d6b6f6c174e08e1cc6d605d2a2a/Contents/Code/AnimeLists.py#L328 This section of code seems to be executing even when it shouldn't be. I've tracked it down far enough to discover that every show (that I checked) returns 'tvdbcount:1' in the mappinglist dict. See Uchuu Kyoudai logs for the best example; there are 4 anidbids related to the single tvdbid="256705" yet tvdbcount only returns 1, so it attempts to map AniDB S1 to TVDB S00E01. There is actually no TVDB episode for this file at all, so it should only use AniDB metadata. There seem to be other issues when trying to forcibly "unmap" AniDB episodes from TVDB episodes; 86 logs have an example of this where I attempted to use a anime-list-custom.xml to unmap specials that were getting mapped due to this posted issue. However it didn't seem to work; there might be a problem with mapping multiple AniDB episodes to TVDB S00E00? I still have to do some more testing before I can identify it fully; and this might just be related to https://github.com/ZeroQI/Hama.bundle/issues/500, but I figured I'd bring it up in case it's related to this issue. Logs.zip

Also the Readme says the filelist and scanner logs are at [...]/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/series_root_folder.filelist.log [...]/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/series_root_folder.scanner.log which was probably true in the past, but I'm guessing something changed in the past few years because now I found them located at [...]/Plex Media Server/Logs/ASS Scanner Logs/series_root_folder.filelist.log [...]/Plex Media Server/Logs/ASS Scanner Logs/series_root_folder.scanner.log

Praxinator commented 1 year ago

PR https://github.com/ZeroQI/Hama.bundle/pull/539 fixes tvdbcount incrementing, but Season 0 Specials still automatically pull TVDB metadata anyway, regardless of tvdbcount or even unmappings from anime-list.