From 8a458fb38b47077d2b5fd34eea5082f2c1ef15cc Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 6 Sep 2025 16:48:55 -0400 Subject: [PATCH] [skip ci] dash missing warnings/errors --- .../src/components/Services/Dash/DashManifest.bs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/playlet-lib/src/components/Services/Dash/DashManifest.bs b/playlet-lib/src/components/Services/Dash/DashManifest.bs index 82fa4a68..dbd7ee47 100644 --- a/playlet-lib/src/components/Services/Dash/DashManifest.bs +++ b/playlet-lib/src/components/Services/Dash/DashManifest.bs @@ -181,11 +181,17 @@ class DashManifest if xml.Node("Representation", representationAttributes) m.AddColorInfo(stream, xml) - if xml.Node("BaseURL") - xml.Text(stream.url) - xml.End() - end if + if stream.url = invalid + xml.Comment(`[ERROR] Stream.url is invalid for itag: ${stream.itag}`) + else stream.url.InStr("source=yt_live_broadcast") + xml.Comment(`[WARN] Stream URL indicates a live broadcast for itag: ${stream.itag}`) + end if + xml.TextNode("BaseURL", ValidString(stream.url)) + + if StringUtils.IsNullOrEmpty(stream.index) or StringUtils.IsNullOrEmpty(stream.init) + xml.Comment(`[ERROR] Stream index: ${stream.index}, init: ${stream.init} is invalid for itag: ${stream.itag}`) + end if if xml.Node("SegmentBase", { "indexRange": stream.index }) xml.EmptyNode("Initialization", { "range": stream.init })