diff --git a/CHANGELOG.md b/CHANGELOG.md index 34da9bfe..8ff6af7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/playlet-lib/src/components/Services/Dash/DashManifest.bs b/playlet-lib/src/components/Services/Dash/DashManifest.bs index dbd7ee47..bc277f07 100644 --- a/playlet-lib/src/components/Services/Dash/DashManifest.bs +++ b/playlet-lib/src/components/Services/Dash/DashManifest.bs @@ -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))