Dash gen fix

This commit is contained in:
Brahim Hadriche committed 2025-09-06 20:48:31 -04:00
1 parent edb9ae1135
commit f5e715a782
2 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- Nothing worth mentioning yet.
### Fixed
- Bug in dash generation
## [0.41.7] - 2025-09-06
@@ -115,7 +115,7 @@ class DashManifest
if stream.url = invalid
xml.Comment(`[ERROR] Stream.url is invalid for itag: ${stream.itag}`)
else stream.url.InStr("source=yt_live_broadcast")
else if stream.url.InStr("source=yt_live_broadcast") <> -1
xml.Comment(`[WARN] Stream URL indicates a live broadcast for itag: ${stream.itag}`)
end if
xml.TextNode("BaseURL", ValidString(stream.url))
@@ -184,7 +184,7 @@ class DashManifest
if stream.url = invalid
xml.Comment(`[ERROR] Stream.url is invalid for itag: ${stream.itag}`)
else stream.url.InStr("source=yt_live_broadcast")
else if stream.url.InStr("source=yt_live_broadcast") <> -1
xml.Comment(`[WARN] Stream URL indicates a live broadcast for itag: ${stream.itag}`)
end if
xml.TextNode("BaseURL", ValidString(stream.url))