Fix TV episode finalization numbering
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user