From 964e8a54ac6eb351c99d919636a42ab2e0b67b7c Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 3 Sep 2025 12:18:42 -0400 Subject: [PATCH] Fix a bug when generating dash manifest with missing stream url --- CHANGELOG.md | 4 +++- playlet-lib/src/components/Services/Dash/DashManifest.bs | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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