[skip ci] dash missing warnings/errors

This commit is contained in:
Brahim Hadriche committed 2025-09-06 16:48:55 -04:00
1 parent 47a7ea21e6
commit 8a458fb38b
1 file changed
+10 -4
@@ -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 })