Download - Woh.bhi.din.the.2024.720p.hevc.web-... -

class MediaParser: # Regex patterns (flexible order) PATTERNS = VP9)\b', 'source': r'\b(Web-DL

# Extract release group group_match = re.search(cls.PATTERNS['group'], base) if group_match: meta['group'] = group_match.group('group') Download - Woh.Bhi.Din.The.2024.720p.HEVC.WeB-...

# Extract resolution res_match = re.search(cls.PATTERNS['resolution'], base, re.IGNORECASE) if res_match: meta['resolution'] = res_match.group().upper() remove extra metadata clean_title = re.sub(r'[._-]'

# Clean title: replace dots/spaces, remove extra metadata clean_title = re.sub(r'[._-]', ' ', base) clean_title = re.sub(r'\b(720p|1080p|HEVC|WEB|BluRay|x264)\b', '', clean_title, flags=re.IGNORECASE) clean_title = ' '.join(clean_title.split()).strip() meta['title'] = clean_title or "Unknown" Download - Woh.Bhi.Din.The.2024.720p.HEVC.WeB-...