--- -xprime4u.pro-.numbari.s01p01.720p.hevc.web-dl Official
| Part | Example | Meaning | |------|---------|---------| | Group tag | -Xprime4u.Pro- | Release group | | Series | Numbari | Show name | | Season & Part | S01P01 | Season 1, Part 1 | | Resolution | 720p | Vertical resolution | | Codec | HEVC | Video codec (H.265) | | Source | WeB-DL | Downloaded from web | Note: P01 might mean "Part 01" (e.g., split episode or dual release). Handle accordingly. import re filename = "-Xprime4u.Pro-.Numbari.S01P01.720p.HEVC.WeB-DL.mkv"
Output:
This guide covers , renaming , metadata extraction , and automation for such naming conventions. 1. Understand the Pattern The filename contains several parts: --- -Xprime4u.Pro-.Numbari.S01P01.720p.HEVC.WeB-DL
match = re.match(pattern, filename, re.VERBOSE | re.IGNORECASE) | Part | Example | Meaning | |------|---------|---------|
pattern = r""" ^-?(?P<group>[A-Za-z0-9.]+)-?. # group (?P<show>[A-Za-z0-9.]+). # show name S(?P<season>\d+)P(?P<part>\d+). # season + part (?P<res>\d+p). # resolution (?P<codec>[A-Za-z0-9]+). # codec (?P<source>[A-Za-z0-9-]+) # source .(?P<ext>[a-z0-9]+)$ # extension """ # show name S(
-Xprime4u.Pro-.Numbari.S01P01.720p.HEVC.WeB-DL
episode_num = int(part) new_name = f"show - SseasonEepisode_num:02d.ext" You can verify codec, resolution, and source: