:

return new_path if name == " main ": test_file = "the pitt s01e11 720p web-dl.mkv" parsed = parse_tv_filename(test_file) print("Parsed:", parsed)

if dry_run: print(f"[DRY RUN] Would rename:\n {old_path.name}\n→ {new_name}\n") else: shutil.move(str(old_path), str(new_path)) print(f"✓ Renamed to: {new_name}")

It sounds like you're looking for a that can process or identify a file named exactly like: