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 })