From 4751036092f32fdd50d8f0a94ce544ff2f2d30ef Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 19 Jul 2026 08:17:09 +0200 Subject: [PATCH] fix(types): make ParsedPlaylistItem.url optional to match runtime The parser fork's d.ts now truthfully declares url?: string (a trailing #EXTINF without a stream URL yields url === undefined at runtime, and always has). The local ParsedPlaylistItem mirrored the old type lie and made the production typecheck reject the parser's Playlist type. createChannel and createPlaylistObject already tolerate the absent url. Co-Authored-By: Claude Fable 5 --- libs/shared/interfaces/src/lib/parsed-playlist.interface.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/shared/interfaces/src/lib/parsed-playlist.interface.ts b/libs/shared/interfaces/src/lib/parsed-playlist.interface.ts index 32f7a3473..350be337f 100644 --- a/libs/shared/interfaces/src/lib/parsed-playlist.interface.ts +++ b/libs/shared/interfaces/src/lib/parsed-playlist.interface.ts @@ -22,7 +22,8 @@ export interface ParsedPlaylistItem { referrer: string; 'user-agent': string; }; - url: string; + /** absent when an #EXTINF entry has no stream URL (e.g. truncated file) */ + url?: string; raw: string; catchup?: { type?: string;