ZeroQI / Absolute-Series-Scanner

Seasons, absolute mode, Subfolders...
999 stars 155 forks source link

Using Season tags does not work `[anidb-1234-s1]` #456

Open efalsken opened 11 months ago

efalsken commented 11 months ago

I think we spoke about this previously, and I've tried a bunch of different ways. I can't get it to recognize season-override at all. My intention is to use this to fix S02E01 style episode numbering because I use anidb series-season style library. (no grouping folders involved in this repro)

Kingdom - TV1 (2012) [anidb-8791]
   Kingdom S01E01.mkv
Kingdom - TV2 (2013) [anidb-9672-s1]
   Kingdom S02E08.mkv
Kingdom - TV3 (2000) [anidb-15259-s-2]
    Kingdom S03E14.mkv
Kingdom - TV4 (2022) [anidb-16912]
    Kingdom S04E14.mkv

In this case, each folder is recognized as a different series (correctly) but when listing the episodes, they still show all of the episodes as either Season 2/3/4. The intention was to map all of the episodes to each series' "Season 1" so that metadata can be downloaded from anidb for all of the episodes.

Further using a season-negative-offset value seems to prevent the scanner from finding the series id: [anidb-15259-s-2]. Using "fix match" and removing the -s-2 from the name ([anidb-15259-s-2]) and it matches perfectly.

Note Episode-offset notation does seem to work properly. [anidb-17091-e-13] correctly causes Plex to see [ASW] Kyoukai Senki - 15 [1080p HEVC][F8C796E0].mkv as S01E02.

image

ZeroQI commented 11 months ago

Anidb only has one season. Why not follow tvdb numbering if you are going to use anidb series per season?

efalsken commented 11 months ago

Anidb only has one season. Why not follow tvdb numbering if you are going to use anidb series per season?

I like Anidb id-per-season because too many anime series are non-conformant with OVA and Specials and Movies that break the normal progression of seasons. I end up using Plex collections to link them together and updating the sort so they appear in the order that makes sense even when TVDB wouldn't have linked them.

It gets even more confusing now that some series are being called "Season 2 Part 1" and "Part 2" instead of "Season 3"....

In this case, the file names sometimes have S02 in them, but it causes the episodes to not match what shows in Anidb and they don't get titles and episode info. It might be that I should be using one of the other anidb2 or some such mappings-type-id instead to do the same thing, but I couldn't figure out which one to use.

image image image image image

ZeroQI commented 11 months ago

It comes back to selecting a numbering, anidb or tvdb, and Plex should display the selected numbering as per the selected metadata source (anidb if single season, tvdb if season 2+ exist for files)...

Why AniDB over TVDB ? Give an explanation without mentioning Tvdb... If I read between the lines, you use anidb and order for more granular control to order the different anidb entries so you get closer to viewing order...

Solution 1: anidb numbering while renaming file correctly

Solution 2: anidb numbering without renaming files

Fix negative season offset

efalsken commented 11 months ago

Yeah. You got the reason for the numbering right on.

This ticket is exactly as you mention in "Solution 2". This override does not work. In the original post I included 3 different ways I had tried. None worked as intended and Season 2/3/4 still show in the Plex UI.

Kingdom - TV1 (2012) [anidb-8791]           # no override needed, scans as season 1
   Kingdom S01E01.mkv
Kingdom - TV2 (2013) [anidb-9672-s1]        # absolute season number, scans as season 2
   Kingdom S02E08.mkv
Kingdom - TV3 (2000) [anidb-15259-s-2]      # season offset, scans as season 3
    Kingdom S03E14.mkv
Kingdom - TV4 (2022) [anidb-16912]          # no season override, scans as season 4
    Kingdom S04E14.mkv

From the readme, I assume that the season-override only supports the absolute season number and not the offset, since the offset method wasn't mentioned. I just tried it for debugging purposes.

Call: "Plex", path: "Kingdom - TV3 (2000) [anidb-15259-s1]", folder_show: "Kingdom - TV3 (2000) [anidb-15259-s1]", dirs (0), files (26)
=============================================================================================================================================================
-------------------------------------------------------------------------------------------------------------------------------------------------------------
=============================================================================================================================================================
Forced ID (series folder) - source: "anidb", id: "15259-s1"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         1                         "SERIES_RX-1" "" "Kingdom S03E01.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         2                         "SERIES_RX-1" "" "Kingdom S03E02.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         3                         "SERIES_RX-1" "" "Kingdom S03E03.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         4                         "SERIES_RX-1" "" "Kingdom S03E04.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         5                         "SERIES_RX-1" "" "Kingdom S03E05.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         6                         "SERIES_RX-1" "" "Kingdom S03E06.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         7                         "SERIES_RX-1" "" "Kingdom S03E07.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         8                         "SERIES_RX-1" "" "Kingdom S03E08.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e         9                         "SERIES_RX-1" "" "Kingdom S03E09.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        10                         "SERIES_RX-1" "" "Kingdom S03E10.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        11                         "SERIES_RX-1" "" "Kingdom S03E11.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        12                         "SERIES_RX-1" "" "Kingdom S03E12.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        13                         "SERIES_RX-1" "" "Kingdom S03E13.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        14                         "SERIES_RX-1" "" "Kingdom S03E14.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        15                         "SERIES_RX-1" "" "Kingdom S03E15.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        16                         "SERIES_RX-1" "" "Kingdom S03E16.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        17                         "SERIES_RX-1" "" "Kingdom S03E17.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        18                         "SERIES_RX-1" "" "Kingdom S03E18.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        19                         "SERIES_RX-1" "" "Kingdom S03E19.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        20                         "SERIES_RX-1" "" "Kingdom S03E20.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        21                         "SERIES_RX-1" "" "Kingdom S03E21.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        22                         "SERIES_RX-1" "" "Kingdom S03E22.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        23                         "SERIES_RX-1" "" "Kingdom S03E23.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        24                         "SERIES_RX-1" "" "Kingdom S03E24.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        25                         "SERIES_RX-1" "" "Kingdom S03E25.mkv"
"Kingdom - TV3 (2000) [anidb-15259]" s03e        26                         "SERIES_RX-1" "" "Kingdom S03E26.mkv"
=============================================================================================================================================================
ZeroQI commented 8 months ago

https://github.com/ZeroQI/Absolute-Series-Scanner/blob/master/Scanners/Series/Absolute%20Series%20Scanner.py#L872 line 0088: SOURCE_ID_OFFSET = cic(ur'(?P\d{1,7})-(?Ps\d{1,3})?(?Pe-?\d{1,3})?') line 0806: offset_match = SOURCE_ID_OFFSET.search(id) could edit line 880 and the 2 following lines to always display the manual season mapping values for troubleshooting

Scanner logs should show "Manual file offset -..." Are you sure you are using latest code for Absolute Series Scanner.py (should be 1353 lines long)