As a media server administrator,
I want my server to automatically recognize that Anweshippin.Kandethum.2024.720p.WeB-DL.HIN-MAL.... is the movie "Anweshippin Kandethum" released in 2024,
So that I don't have to manually rename the file or edit metadata tags to see the correct poster and description.
def parse_filename(filename):
# Clean extension
clean_name = filename.replace(".mkv", "").replace(".mp4", "")
# Define Regex Patterns
patterns = 2160p)",
"source": r"(WEB-DL
# Extract Year to split Title
year_match = re.search(patterns['year'], clean_name)
if year_match:
title_part = clean_name[:year_match.start()]
meta_part = clean_name[year_match.start():]
year = year_match.group(1)
else:
title_part = clean_name
meta_part = ""
year = None
# Format Title
title = title_part.replace(".", " ").replace("_", " ").strip()
# Extract Technicals
resolution = re.search(patterns['resolution'], meta_part)
audio_langs = re.findall(patterns['audio'], meta_part) # Returns list ['HIN', 'MAL']
return
"title": title,
"year": year,
"quality": resolution.group(0) if resolution else "Unknown",
"languages": audio_langs,
"source": "Web-DL"
# Output for 'Anweshippin.Kandethum.2024.720p.WeB-DL.HIN-MAL....'
#
# 'title': 'Anweshippin Kandethum',
# 'year': '2024',
# 'quality': '720p',
# 'languages': ['HIN', 'MAL'],
# 'source': 'Web-DL'
#
Since you specified the release name, here’s a review of that print/rip quality: Anweshippin.Kandethum.2024.720p.WeB-DL.HIN-MAL....
The film follows Sub-Inspector Anand (Tovino Thomas), a young, earnest police officer in 1990s Kerala. He is tasked with reopening two long-cold cases—the disappearance of a young woman from a well-to-do family and the murder of a schoolteacher in a remote village. With limited forensic tools, Anand relies on old-fashioned legwork, intuition, and psychological profiling to connect the dots. As a media server administrator, I want my
When a user views this file in the library, the interface will render the following details dynamically: Since you specified the release name, here’s a
Library View (Card View):
Detail View (On Click):