From 09902e0ec3f4d028dd480207de9cec8105db2eba Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 1 Jan 2025 13:14:16 -0500 Subject: [PATCH] Small bug fix --- CHANGELOG.md | 1 + playlet-lib/src/components/VideoPlayer/VideoPlayer.bs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27b92522..3dcda334 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Video duration in queue view +- Crash in player when video ID is invalid (again) ## [0.35.3] - 2024-12-29 diff --git a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs index 61f7acb7..4cf9cef3 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs @@ -172,7 +172,7 @@ function OnVideoContentTaskResults(output as object) as void end if error = ErrorUtils.Format(error) LogError(error) - videoId = output.task.input.content.videoId + videoId = `${output.task.input.content.videoId}` title = Tr(Locale.VideoPlayer.VideoLoadError) message = Tr(Locale.VideoPlayer.VideoLoadErrorMessage).Replace("%1", videoId) + `\n${error}`