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}`