Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S01E10 is interpreted as s00e001 on file/folder names that use .s for spacing #394

Closed
LuminescentMoon opened this issue Jan 31, 2022 · 8 comments
Labels

Comments

@LuminescentMoon
Copy link

The Spice and Wolf release by YURASUKA has file names that makes ASS interpret S01E10 as s00e001.

Platform

Operating system and version: Windows 11 21H2
Plex version: 1.40.1.2823-6f60f3a7 and 1.25.4.5468

Expected Behavior

S01E10 should be interpreted as s01e010.

Current Behavior

S01E10 is interpreted as s00e001.

=============================================================================================================================================================
Call: "Plex", path: "Spice.and.Wolf.S01.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA [tvdb5-81178-s1]", folder_show: "Spice.and.Wolf.S01.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA [tvdb5-81178-s1]", dirs (0), files (13)
=============================================================================================================================================================
-------------------------------------------------------------------------------------------------------------------------------------------------------------
=============================================================================================================================================================
Forced ID (series folder) - source: "tvdb5", id: "81178-s1"
TVDB season mode (tvdb5) enabled, tvdb serie rl: 'http://thetvdb.com/api/A27AD9BE0DA63333/series/81178/all/en.xml'
Using cached file - Filename: 'c:\users\user\appdata\local\temp\ASS-TheTVDB-json-81178-series_en.xml', Age: '0.04 days', Limit: '6 days', url: 'http://thetvdb.com/api/A27AD9BE0DA63333/series/81178/all/en.xml'
mappingList: {'s0e5': 's1e0', 's1e3': 's1e3', 's1e2': 's1e2', 's1e1': 's1e1', 's1e7': 's1e8', 's1e6': 's1e6', 's1e5': 's1e5', 's1e4': 's1e4', 's0e6': 's1e0', 's1e9': 's1e10', 's1e8': 's1e9', 's0e2': 's1e0', 's0e3': 's1e0', 's0e1': 's1e7', 's1e12': 's1e13', 's1e11': 's1e12', 's1e10': 's1e11', 's2e8': 's1e22', 's2e9': 's1e23', 's2e1': 's1e15', 's2e2': 's1e16', 's2e3': 's1e17', 's2e4': 's1e18', 's2e5': 's1e19', 's2e6': 's1e20', 's2e7': 's1e21', 's2e12': 's1e26', 's2e10': 's1e24', 's2e11': 's1e25', 's0e4': 's1e14'}
-------------------------------------------------------------------------------------------------------------------------------------------------------------
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         1                         "SERIES_RX-1" "" "Spice.and.Wolf.S01E01.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         2                         "SERIES_RX-1" "" "Spice.and.Wolf.S01E02.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         3                         "SERIES_RX-1" "" "Spice.and.Wolf.S01E03.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         4                         "SERIES_RX-1" "" "Spice.and.Wolf.S01E04.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         5                         "SERIES_RX-1" "" "Spice.and.Wolf.S01E05.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         6                         "SERIES_RX-1" "" "Spice.and.Wolf.S01E06.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         8     (Orig: s01e007    ) "SERIES_RX-1" "" "Spice.and.Wolf.S01E07.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         9     (Orig: s01e008    ) "SERIES_RX-1" "" "Spice.and.Wolf.S01E08.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e        10     (Orig: s01e009    ) "SERIES_RX-1" "" "Spice.and.Wolf.S01E09.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e         7     (Orig: s00e001    ) "ANIDB_RX-0" "E . .10" "Spice.and.Wolf.S01E10.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e        12     (Orig: s01e011    ) "SERIES_RX-1" "" "Spice.and.Wolf.S01E11.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e        13     (Orig: s01e012    ) "SERIES_RX-1" "" "Spice.and.Wolf.S01E12.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
"Spice and Wolf S01 Dual-Audio x265-YURASUKA [tvdb5-81178]" s01e        13                         "SERIES_RX-1" "" "Spice.and.Wolf.S01E13.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"
=============================================================================================================================================================

Steps to Reproduce

  1. Setup new Windows VM. Install Plex and ASS.
  2. Create a library using ASS as the scanner and Personal Media Shows as the agent.
  3. Copy series to library folder.
  4. Check the name of episode 7. Name will be E . .10.

Additional information

This problem has been verified on a fresh Windows VM with only Plex, ASS, and the series in question.

@ZeroQI
Copy link
Owner

ZeroQI commented Feb 1, 2022

ASS was made so you can just label appropriately the series folder and the folder content should be accepted as-is

  • Why forcing S1 season when it is already season1?
  • Seem like the s01 in series title cause the issue ...
  • The dot as spacing in the series folder doesn't seem to help...

@LuminescentMoon
Copy link
Author

Just found another release that has the same problem:
Watamote.S01.1080p.BluRay.10-Bit.Dual-Audio.FLAC2.0.x265-YURASUKA [anidb4-9582]

Do you want me to take a crack at fixing it or do you want to try and fix it yourself? I don't normally code in python though.

Why forcing S1 season when it is already season1?

A habit I do so if the Plex DB gets corrupted and I need to re-add the library, I wouldn't need to rematch every single series as forcing reliably auto matches.

Seem like the s01 in series title cause the issue ...

Interestingly, this release does not exhibit the problem:
My.Hero.Academia.S02.1080p-Hi10p.BluRay.FLAC5.1.x264-ITH [anidb4-12233]

@LuminescentMoon LuminescentMoon changed the title S01E10 is interpreted as s00e001 on Spice and Wolf S01E10 is interpreted as s00e001 on file/folder names that use .s for spacing Feb 2, 2022
@ZeroQI
Copy link
Owner

ZeroQI commented Feb 2, 2022

Was talking AB ut the -s1 more than the forced I

The title after processing indicate the scrub was not identical to the other filenames although the filenames were following the same naming convention... I can't see how the title ended like E with spaces and dots and the EP number... The folder name sould be substracted front the filename and the different spacing could prevent this part from working adequately
If adding the right exclusions to pre wack for the tags may take care of that.

Series title really atrocious as it uses dots and tags not in square brackets and FLAC5.1 needs to be removed definitely by scrubbing
Watamote.S01.1080p.BluRay.10-Bit.Dual-Audio.FLAC2.0.x265-YURASUKA [anidb4-9582] after scrubbing should be 'Watanote S01'

Don't have time currently for long fix although can see code on phone to see if I see a quick one. It's been years I don't use Plex anymore to view stuff and Nas has been shutdown since summer...

@ZeroQI ZeroQI closed this as completed Feb 2, 2022
@ZeroQI ZeroQI reopened this Feb 2, 2022
@Razzeli
Copy link

Razzeli commented May 7, 2022

Not sure if this helps, but I've been having the same problem, but if I rename the "10-bit" part to "10bit" for example, then it scans it correctly.

@ZeroQI
Copy link
Owner

ZeroQI commented May 7, 2022

"Spice.and.Wolf.S01E10.1080p.BluRay.10-Bit.Dual-Audio.FLAC5.1.x265-YURASUKA.mkv"

It is because there's too many 10s in the string, it hit a failsafe. Pre-wack need to remove "10-bit" and "1080p"

@ZeroQI
Copy link
Owner

ZeroQI commented May 8, 2022

Try line 108 to add , "10-bit" towards the end since other string includes 10-bit part and should be removed whole, and report

https://github.com/ZeroQI/Absolute-Series-Scanner/blob/master/Scanners/Series/Absolute%20Series%20Scanner.py

WHACK_PRE_CLEAN_RAW = [ "x264-FMD Release", "EniaHD (HEVC, WEB-DL 2160p)", "x264-h65", "x264-mSD", "x264-BAJSKORV", "x264-MgB", "x264-SYS", "x264-FQM", "x264-ASAP", "x264-QCF", "x264-W4F", 'x264-w4f', "x264-AAC",
                        'x264-2hd', "x264-ASAP", 'x264-bajskorv', 'x264-batv', "x264-BATV", "x264-EXCELLENCE", "x264-KILLERS", "x264-LOL", 'x264-MgB', 'x264-qcf', 'x264-SnowDoN', 'x264-xRed',
                        "H.264-iT00NZ", "H.264.iT00NZ", 'H264-PublicHD', "H.264-BS", 'REAL.HDTV', "WEB.DL", "H_264_iT00NZ", "www.crazy-torrent.com", "ReourceRG Kids Release", "Paramount",
                        "By UniversalFreedom", "XviD-2HD", "XviD-AFG", "xvid-aldi", 'xvid-asap', "XviD-AXED", "XviD-BiA-mOt", 'xvid-fqm', "xvid-futv", 'xvid-killer', "XviD-LMAO", 'xvid-pfa',
                        'xvid-saints', "XviD-T00NG0D", "XViD-ViCKY", "XviD-BiA", "XVID-FHW", "PROPER-LOL", "5Banime-koi_5d", "%5banime-koi%5d", "minitheatre.org", "mthd bd dual", "WEB_DL",
                        "HDTV-AFG", "HDTV-LMAO", "ResourceRG Kids", "kris1986k_vs_htt91",   "-Pikanet128", "hdtv-lol", "REPACK-LOL", " - DDZ", "OAR XviD-BiA-mOt", "3xR", "(-Anf-)",
                        "Anxious-He", "Coalgirls", "2xDVO.MVO", "VO.ENG.Subs", "NF.WEBRip.by.AKTEP", "(HappyLee Remastered HQ)", "Commie", "DarkDream", "Doremi", "ExiledDestiny", "Exiled-Destiny", "Exiled Destiny", "FFF", "FFFpeeps", "Hatsuyuki", "HorribleSubs",
                        "joseole99", "DCU.WEB-DL", 'web-dl', "DDP5.1", "x265-NTb", "(II Subs)", "OAR HDTV-BiA-mOt", "Shimeji", "(BD)", "(RS)", "Rizlim", "Subtidal", "Seto-Otaku", "OCZ", "_dn92__Coalgirls__", "CasStudio",
                        "BDRemux", "(BD 1920x1080 Hi10P, JPN+ENG)", "(BD 1280x720 Hi10P)", "(DVD_480p)", "(1080p_10bit)", "(1080p_10bit_DualAudio)", "(Tri.Audio)", "(Dual.Audio)", "(BD_720p_AAC)", "x264-RedBlade",
                        "BD 1080p", "BD 960p", "BD 720p", "BD_720p", "TV 720p", "DVD 480p", "DVD 476p", "DVD 432p", "DVD 336p", "1080p.BluRay", "FLAC5.1", "x264-CTR", "1080p-Hi10p", "FLAC2.0",
                        "2160p", "(final)", "2xRus.Eng", "1920x1080", "1280x720", "848x480", "952x720", "(DVD 720x480 h264 AC3)", "(720p_10bit)", "(1080p_10bit)", "(1080p_10bit", "(BD.1080p.AAC)", "[720p]", "WEBDL", "NewStudio",
                        "H.264_AAC", "Hi10P", "Hi10", "x264", "BD 10-bit", "DXVA", "H.264", "(BD, 720p, FLAC)", "Blu-Ray", "Blu-ray",  "SD TV", "SD DVD", "HD TV",  "-dvdrip", "dvd-jap", "(DVD)", "BDRip", 
                        "FLAC", "Dual Audio", "AC3", "AC3.5.1", "AC3-5.1", "AAC2.0", "AAC.2.0", "AAC2_0", "AAC", "1080p", 'DD2.1', 'DD5.1', "5.1",'divx5.1', "DD5_1", "TV-1", "TV-2", "TV-3", "TV-4", "TV-5",
                        "(Exiled_Destiny)", "720p", "480p", "_BD", ".XVID", "(xvid)", "dub.sub_ja+.ru+", "dub.sub_en.ja", "dub_en", "UNCENSORED", "THD", "H264", "2xDVO", "Subs", "Sub",
                        'ExKinoRay', "NTb", "(S01-02)", "-Cd 1", "-Cd 2", "Vol 1", "Vol 2", "Vol 3", "Vol 4", "Vol 5", "Vol.1", "Vol.2", "Vol.3", "Vol.4", "Vol.5", "NTSC",
                        "%28", "%29", " (1)", "(Clean)", "(DVDRemux)", "vostfr", "HEVC", "(Bonus inclus)", "(BD 1920x1080)", "10Bits-WKN", "WKN", "(Complet)", "Despair-Paradise", "Shanks@", "[720p]", "10Bits",
                        "(TV)", "[DragonMax]", "INTEGRALE", "MKV", "(Remastered HQ)", "MULTI", "DragonMax", "Zone-Telechargement.Ws", "Zone-Telechargement", "AniLibria.TV", "HDTV-RIP",
                        "mawen1250", "Creditless", "YUV420P10", "AI-Raws", "philosophy-raws", "VCB-S", "10-bit"
                      ]                                                                                                                                                               #include spaces, hyphens, dots, underscore, case insensitive

@ZeroQI
Copy link
Owner

ZeroQI commented Jun 6, 2022

did it work ? (please note you need to change folder content to rescan without using the cached result, or do the plex dance)

@ethanbergstrom
Copy link

ethanbergstrom commented Apr 30, 2023

Just wanted to chime in that this fixed an issue I was having with another batch of YURASUKA subs after upgrading the scanner and jiggling the folder name to trigger a re-scan.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants