Fix TV episode finalization numbering

This commit is contained in:
Dymas
2026-08-16 22:33:45 +02:00
parent 376301f39f
commit 8e95ffc79b
5 changed files with 39 additions and 2 deletions
+3
View File
@@ -1030,6 +1030,9 @@ def apply_episode_offset(value, offset):
def extract_episode_from_filename(path):
match = re.search(r"\bS[0-9]+E([0-9][0-9A-Za-z.\-]*)\b", path.stem, re.IGNORECASE)
if match:
return match.group(1)
match = re.search(r"\bEpisode\s+([0-9][0-9A-Za-z.\-]*)\s*$", path.stem)
return match.group(1) if match else None