The Studio S01 1080p Web-dl ~upd~ -

interface MediaInfo null; source: string class MediaFilenameParser private static readonly QUALITIES = ['1080p', '720p', '4k', '2160p']; private static readonly SOURCES = ['web-dl', 'webrip', 'bluray', 'hdtv', 'dvd'];

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 the studio s01 1080p 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'] interface MediaInfo null

// 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: private static readonly SOURCES = ['web-dl'