ZeroQI / Absolute-Series-Scanner

Seasons, absolute mode, Subfolders...
1k stars 155 forks source link

Filenames containing EAC3 tag do overwrite season/episode labels #427

Closed inter5tella closed 1 year ago

inter5tella commented 1 year ago

Platform

Operating system and version: Debian 10 (buster) Plex version: 1.29.1.6316

Expected Behavior

The scanner is recognizing the filename's season and episode number, defined by its sXXeXX label

Current Behavior

If all seasonal episode files contain a EAC3 tag inside its filename, all files will be recognized as season 'Specials', episode 01

Steps to Reproduce

  1. Add a season folder to your library where all filenames do include a EAC3 tag
  2. Start a scan of the library that contains the root of your newly added season folder
  3. Wait for the scanner and agent to add the files
  4. Open the series in Plex and check the seasons (Only 'Specials' will be shown)
  5. Check the amount of episdoes inside the season (Will only contain 1 episode)
  6. Check the playable versions of episode 01 (Amount of versions will match the amount of files inside the season folder)

01 02 05

Additional information

Removing the EAC3 tag from the first file name and triggering a new library check, will recognize all files as independent episodes

03 04

Logs from the specific scan: Bastard.Der.Gott.der.Zerstoerung.S01.German.ML.EAC3.1080p.NF.WebDL.x264-DK.filelist.log Bastard.Der.Gott.der.Zerstoerung.S01.German.ML.EAC3.1080p.NF.WebDL.x264-DK.scanner.log

ZeroQI commented 1 year ago

If you add this tag 'EAC3' to WHACK_PRE_CLEAN_RAW, what happens after a Plex dance?

inter5tella commented 1 year ago

This fixed the issue, but it was necessary to add the tag before "AC3", as the exclusion of ac3 will leave the 'E' behind. The 'E' seems to trigger again the episode number handler. But if no numberic value is following, the file will be treated as a special. Maybe it's necessary to add a logic, if sXXeXX is already recognized, an additional episode number handling must be blocked.