The Studio S01 1080p Web-dl //top\\ ✨

// Example usage const result = MediaFilenameParser.parse("the studio s01 1080p web-dl"); console.log(result); If you want to normalize filenames into a consistent format:

static parse(filename: string): MediaInfo the studio s01 1080p web-dl

interface MediaInfo original: string; title: string; season: number class MediaFilenameParser private static readonly QUALITIES = ['1080p', '720p', '4k', '2160p']; private static readonly SOURCES = ['web-dl', 'webrip', 'bluray', 'hdtv', 'dvd']; // Example usage const result = MediaFilenameParser

I'll provide a implementation, but the logic can be adapted to Python, C#, etc. Feature: Media Filename Parser Goal Extract title , season , quality , and source from a string like "the studio s01 1080p web-dl" . Output Example "original": "the studio s01 1080p web-dl", "title": "The Studio", "season": 1, "quality": "1080p", "source": "web-dl", "isValid": true private static readonly SOURCES = ['web-dl'

// Output: "The Studio S01 1080p web-dl" import re class MediaParser: QUALITIES = ['1080p', '720p', '4k', '2160p'] SOURCES = ['web-dl', 'webrip', 'bluray', 'hdtv', 'dvd']