Web-dl 'link': The Studio S01 1080p
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'];
static parse(filename: string): MediaInfo null = null; const seasonMatch = lower.match(/(?:s the studio s01 1080p web-dl
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 interface MediaInfo null