print(parse_filename("theterminallists01e03720p10bitwebdl"))
Output:
'original_title': 'The Terminal List',
'season': 1,
'episode': 3,
'resolution': '720p',
'bit_depth': '10bit',
'source': 'WEBDL',
'full_name': 'The Terminal List S01E03 720p 10bit WEBDL'
The third episode of the first season of The Terminal List Consolidation
originally aired on July 1, 2022. This episode is a pivotal chapter where protagonist James Reece (Chris Pratt) fully transitions from a soldier into a "cold-blooded avenger" as he begins systematically hunting those on his list. Key Episode Features & Plot Highlights The Target
: Reece sets his sights on his first major corporate target, Saul Agnon , the Vice President of Capstone Industries. The Interrogation theterminallists01e03720p10bitwebdlhin new
: A standout moment features a dark, tactical interrogation where Reece infiltrates Agnon’s home and uses his military expertise to extract information about "Project RD 4895". Policy Overhaul
: In Washington, D.C., Secretary of Defense Lorraine Hartley announces a major military budget overhaul that she claims is her legacy, aimed at special operations. The Brain Tumor
: Reporter Katie Buranek discovers that Reece has a brain tumor, which initially makes her question his sanity until they are both targeted by an assassin. Conspiracy Depth
: The episode reveals that the conspiracy involves corporate interests, specifically billionaire Steve Horn print(parse_filename("theterminallists01e03720p10bitwebdl"))
and Capstone Industries, who used Mexican sicarios to carry out hits. Technical File Specifications (for 720p 10bit WEB-DL HIN
Based on the file naming convention you provided, the release typically includes: Resolution : 1280x720 (High Definition). Color Depth
: 10-bit (High Efficiency Video Coding, offering smoother color gradients and reduced banding).
: WEB-DL (lossless rip from a streaming service like Prime Video). Output:
: Includes a Hindi (HIN) dubbed audio track alongside the original English. Production Context M. J. Bassett Chris Pratt, Taylor Kitsch, Constance Wu, Sean Gunn Key Location
San Francisco / San Jose area (setting for the pursuit of Agnon) Approximately 55–60 minutes 'The Terminal List' Episode 3 Recap: “Consolidation”
The string is a standard naming convention used for TV show releases. Here is the component-by-component breakdown:
import re
def parse_filename(filename):
# Example: theterminallists01e03720p10bitwebdl
pattern = r'(?P<title>[a-zA-Z]+)(?P<season>\d2)(?P<episode>\d2)(?P<resolution>\d3,4p)(?P<bitdepth>\d+bit)(?P<source>[a-zA-Z]+)'
match = re.search(pattern, filename.lower())
if not match:
return None
data = match.groupdict()
# Clean up title
title = ' '.join(re.findall('[A-Z][a-z]*', data['title'].capitalize()))
return
'original_title': title,
'season': int(data['season']),
'episode': int(data['episode']),
'resolution': data['resolution'],
'bit_depth': data['bitdepth'],
'source': data['source'].upper(),
'full_name': f"title Sdata['season']Edata['episode'] data['resolution'] data['bitdepth'] data['source'].upper()"