The.ghost.detective.s01.e01-16.1080p.jio.web-dl... May 2026

if match: show = match.group(1).replace('.', ' ') # "The Ghost Detective " start_ep = int(match.group(2)) end_ep = int(match.group(3)) quality = match.group(4) # Create individual files for episodes 1 through 16 for ep_num in range(start_ep, end_ep + 1): new_name = f"{show.strip()} - S01E{ep_num:02d} - {quality}.mkv" print(f"Would rename: {filename} -> {new_name}") # os.rename(os.path.join(folder_path, filename), # os.path.join(folder_path, new_name)) Use this if the single file actually contains all 16 episodes concatenated.

for filename in os.listdir(folder_path): # Match pattern: Show Name S01.E01-16 Quality Source match = re.search(r"(The.Ghost.Detective.)S01.E(\d{2})-(\d{2}).(.*)", filename) The.Ghost.Detective.S01.E01-16.1080p.JIO.WEB-DL...

@echo off REM Extract episode 1 (assuming 45 min episodes) ffmpeg -i "The.Ghost.Detective.S01.E01-16.1080p.JIO.WEB-DL.mkv" ^ -ss 00:00:00 -t 00:45:00 -c copy "The.Ghost.Detective.S01E01.mkv" REM Episode 2 ffmpeg -i "The.Ghost.Detective.S01.E01-16.1080p.JIO.WEB-DL.mkv" ^ -ss 00:45:00 -t 00:45:00 -c copy "The.Ghost.Detective.S01E02.mkv" REM ... repeat for E03 to E16 Use this if you want a creative writing sample based on the title. if match: show = match