UNPKG

@ctrl/video-filename-parser

Version:
20 lines (19 loc) 733 B
export declare const webdlExp: RegExp; export declare enum Source { BLURAY = "BLURAY", WEBDL = "WEBDL", WEBRIP = "WEBRIP", DVD = "DVD", CAM = "CAM", SCREENER = "SCREENER", PPV = "PPV", TELESYNC = "TELESYNC", TELECINE = "TELECINE", WORKPRINT = "WORKPRINT", TV = "TV" } type SourceGroupKey = 'bluray' | 'webdl' | 'webrip' | 'hdtv' | 'bdrip' | 'brrip' | 'scr' | 'dvdr' | 'dvd' | 'dsr' | 'regional' | 'ppv' | 'ts' | 'tc' | 'cam' | 'workprint' | 'pdtv' | 'sdtv' | 'tvrip'; type SourceGroups = Record<SourceGroupKey, boolean>; export declare function parseSourceGroups(title: string): SourceGroups; export declare function parseSource(title: string, groups?: SourceGroups): Source[]; export {};