diff --git a/CHANGELOG.md b/CHANGELOG.md index 7573d7c1..11f5590e 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 + +- A bug when generating dash manifest with missing stream url ## [0.41.2] - 2025-09-03 diff --git a/playlet-lib/src/components/Services/Dash/DashManifest.bs b/playlet-lib/src/components/Services/Dash/DashManifest.bs index 7dd26636..4a64869f 100644 --- a/playlet-lib/src/components/Services/Dash/DashManifest.bs +++ b/playlet-lib/src/components/Services/Dash/DashManifest.bs @@ -417,8 +417,11 @@ class DashManifest return combos end function - function ParseAudioLanguage(url as string) as object + function ParseAudioLanguage(url as dynamic) as object result = { lang: "", acont: "" } + if StringUtils.IsNullOrEmpty(url) + return result + end if queryParams = UrlUtils.ParseQueryComponents(url) if StringUtils.IsNullOrEmpty(queryParams["xtags"]) return result