Closed BDiamond closed 3 years ago
Anidb matches should appear when selecting Match... or Fix Match...
Not if the series have episodes from a season 2 or more, in which case only TheTVDB matches should appear for HAMA agent search() function, which seem to be the case.
There have been 22 updates since the version you reference.
While I was setting up a test library on a secondary server to provide logs, I found out what the issue was. If the name of a folder contains (or end with ?) "Season xx", it has precedence over the [xxxx-xxxx] tags. I removed "Season xx" from the folder names and everything worked properly with the current version of the script.
This happened because I have the folders named after the official (Japanese) name of the series like this: 進撃の巨人 attack on titan [anidb-9541] 進撃の巨人 attack on titan Season 2 [anidb-10944] 進撃の巨人 attack on titan Season 3 [anidb-13241]
Since there's an easy workaround, I guess you can close this issue if you think it is not worth fixing.
I did make season folders way more permissive, so that makes sense I believe we need to be permissive with season folders BUT need to implement season folder bypass:
Already excluding the folder in the library root (last one in reverse_folder list), so i guess you put all in a grouping folder:
if SOURCE_IDS.search(folder): break
in you setting with "season x" please?
for folder in reverse_path[:-1]: # remove root folder from test, [:-1] Doesn't thow errors but gives an empty list if items don't exist, might not be what you want in other cases
if SOURCE_IDS.search(folder): break #if it has a forced id, not a season folder
for rx in SEASON_RX: # in anime, more specials folders than season folders, so doing it first
Exactly. I put them all in a grouping folder so that they all get in the same collection automatically after the first scan.
Unfortunately this change doesn't work. The folders with "Season" in their name are skipped entirely.
Reproduced, and fixed normally.
Tested. The issue is fixed, thanks.
Platform
Operating system and version: TrueNAS 12.0 Plex version: 1.22.0.4163
Expected Behavior
Anidb matches should appear when selecting Match... or Fix Match... After manual matching, subsequent season should be detected as separate (different anidb ID)
Current Behavior
Failure to match anidb series despite the [anidb-xxxx] tag at the end of each folder. Only TheTVDB matches are displayed when selecting Match... or Fix Match... After manual matching, subsequent seasons are added to the last successful manual match despite the different [anidb-xxxx] tags on each folders.
Steps to Reproduce
Additional information
Reverting to https://github.com/ZeroQI/Absolute-Series-Scanner/commit/b467d410b332066491ecefc6c931d4a4559fb7bc fixes the issue. I couldn't rely try subsequent versions because of the UnicodeEncodeError bug.