[skip ci] small tweak in dash
This commit is contained in:
1 parent
87f355ab85
commit
54b3b277dc
1 file changed
+2
-2
@@ -118,7 +118,7 @@ class DashManifest
|
||||
|
||||
if StringUtils.IsNullOrEmpty(stream.url)
|
||||
xml.Comment(`[ERROR] Stream.url is null or empty for itag: ${stream.itag}`)
|
||||
else if stream.url.InStr("source=yt_live_broadcast") <> -1
|
||||
else if stream.url.InStr("yt_live_broadcast") <> -1 or stream.url.InStr("yt_premiere_broadcast") <> -1
|
||||
xml.Comment(`[WARN] Stream URL indicates a live broadcast for itag: ${stream.itag}`)
|
||||
end if
|
||||
xml.TextNode("BaseURL", ValidString(stream.url))
|
||||
@@ -187,7 +187,7 @@ class DashManifest
|
||||
|
||||
if StringUtils.IsNullOrEmpty(stream.url)
|
||||
xml.Comment(`[ERROR] Stream.url is null or empty for itag: ${stream.itag}`)
|
||||
else if stream.url.InStr("source=yt_live_broadcast") <> -1
|
||||
else if stream.url.InStr("yt_live_broadcast") <> -1 or stream.url.InStr("yt_premiere_broadcast") <> -1
|
||||
xml.Comment(`[WARN] Stream URL indicates a live broadcast for itag: ${stream.itag}`)
|
||||
end if
|
||||
xml.TextNode("BaseURL", ValidString(stream.url))
|
||||
|
||||
Reference in new issue
Block a user