UNPKG

@ctrl/video-filename-parser

Version:
23 lines (22 loc) 1.27 kB
export interface ParsedMatchCollection { seriesName: string; seriesTitle?: string; seasonNumbers?: number[]; isMultiSeason?: boolean; episodeNumbers?: number[]; isSpecial?: boolean; isSeasonExtra?: boolean; seasonPart?: number; isPartialSeason?: boolean; fullSeason?: boolean; airDate?: Date; releaseTokens?: string; } export declare function completeRange(arr: number[]): number[]; export declare function normalizeSixDigitAirDate(title: string, simpleTitle: string): string; export declare function parseGenericMatchCollection(match: RegExpExecArray, simpleTitle: string): ParsedMatchCollection | null; export declare function parseAirDateMatch(match: RegExpExecArray, simpleTitle: string): ParsedMatchCollection | null; export declare function parseSeasonEpisodeMatch(match: RegExpExecArray, simpleTitle: string): ParsedMatchCollection | null; export declare function parseSeasonPackMatch(match: RegExpExecArray, simpleTitle: string): ParsedMatchCollection | null; export declare function parsePartialSeasonMatch(match: RegExpExecArray, simpleTitle: string): ParsedMatchCollection | null; export declare function parseAbsoluteEpisodeMatch(match: RegExpExecArray, simpleTitle: string): ParsedMatchCollection | null;