The Studio S01 1080p Web-dl Instant

// 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:

class MediaFilenameParser private static readonly QUALITIES = ['1080p', '720p', '4k', '2160p']; private static readonly SOURCES = ['web-dl', 'webrip', 'bluray', 'hdtv', 'dvd']; the studio s01 1080p web-dl

// Extract quality let quality: string