The Pitt S01e11 720p Web-dl [verified] -

# Dry run rename clean_rename(Path(test_file), dry_run=True)

return { "show": show, "season": season, "episode": episode, "quality": quality, "source": source.lower(), "extension": ext } def clean_rename(old_path: Path, output_dir: Path = None, dry_run=True): """ Rename a messy TV file to 'Show Name - S01E11 - Quality Source.ext' """ old_path = Path(old_path) info = parse_tv_filename(old_path.name) the pitt s01e11 720p web-dl

the pitt s01e11 720p web-dl

It sounds like you're looking for a that can process or identify a file named exactly like: # Dry run rename clean_rename(Path(test_file)

:

show = match.group(1).replace('.', ' ').replace('_', ' ').strip().title() season = int(match.group(2)) episode = int(match.group(3)) quality = match.group(4) or "unknown" source = match.group(5) or "unknown" dry_run=True) return { "show": show