@ctrl/video-filename-parser
Version:
A radarr style release name parser
24 lines (23 loc) • 879 B
TypeScript
import { completeRange, type ParsedMatchCollection } from './season/common.js';
export { completeRange, type ParsedMatchCollection };
export interface Season {
releaseTitle: string;
seriesTitle: string;
seasons: number[];
episodeNumbers: number[];
airDate: Date | null;
fullSeason: boolean;
isPartialSeason: boolean;
isMultiSeason: boolean;
/**
* Check to see if this is an "Extras" or "SUBPACK" release, if it is, set
*/
isSeasonExtra: boolean;
isSpecial: boolean;
/**
* Partial season packs will have a seasonpart group so they can be differentiated from a full season/single episode release
*/
seasonPart: number;
}
export declare function parseSeason(title: string): Season | null;
export declare function parseMatchCollection(match: RegExpExecArray, simpleTitle: string): ParsedMatchCollection | null;