Since the filename is incomplete and the request is vague, I’ll assume you want one or more of the following: (Python script) A script to parse such filenames into structured info.
It looks like you’re asking to based on a filename:
"title": "Meiyazhagan", "year": "2024", "resolution": "720p", "codec": "HEVC", "source": "WEB-DL", "audio": "Hindi", "subgroup": "Tamil", "ext": "mkv" Meiyazhagan.2024.720p.HEVC.WEB-DL.Hindi.ORG-Tam...
import re filename = "Meiyazhagan.2024.720p.HEVC.WEB-DL.Hindi.ORG-Tamil.mkv"
Rename it so media servers can identify it: Since the filename is incomplete and the request
Meiyazhagan.2024.720p.HEVC.WEB-DL.Hindi.ORG-Tam...
Output:
match = re.match(pattern, filename) if match: print(match.groupdict())
pattern = r'(?P<title>.+?).(?P<year>\d4).(?P<resolution>\d+p).(?P<codec>HEVC|H264|AV1).(?P<source>WEB-DL|BluRay|DVD).(?P<audio>Hindi|Tamil|Telugu|English|Malayalam).ORG-(?P<subgroup>.+?).(?P<ext>mkv|mp4)' Meiyazhagan.2024.720p.HEVC.WEB-DL.Hindi.ORG-Tam...