Files
KVideo/lib/utils/m3u8-ad-types.ts
kuekhaoyang cdab3b1c8a fix: harden M3U8 ad filtering
Reject unsafe dynamic filter execution, reduce heuristic false positives, add regression coverage, bump the app to 4.9.17, and update Next.js to the latest stable security patch.
2026-07-29 22:13:54 +08:00

28 lines
531 B
TypeScript

export interface Segment {
url: string;
duration: number;
lineIndex: number;
}
export interface Block {
segments: Segment[];
startLineIndex: number;
endLineIndex: number;
hasCueTag: boolean;
}
export interface MainPattern {
filenameRegex: RegExp | null;
avgDuration: number;
commonPrefix: string;
pathPrefix: string;
origin: string;
usesNtscLikeGrid: boolean;
usesFilm24LikeGrid: boolean;
}
export interface SegmentLocation {
origin: string;
pathPrefix: string;
}