diff --git a/CHANGELOG.md b/CHANGELOG.md index cf1f6d9d..4bce259a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add watched videos to Invidious watch history +### Fixed +- A crash where the metadata of a video is not validated #57 + ## [0.8.0] - 2023-03-02 ### Added - SponsorBlock notification diff --git a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs index 37c68c81..1e77ae93 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs @@ -87,7 +87,7 @@ function OnVideoDetailsTaskResults(output as object) as void if videoId <> m.top.videoId return end if - if not metadata.success + if (not metadata.success) or (metadata.data = invalid) m.busySpinner.visible = false m.busySpinner.control = "stop" message = `Failed to load video information for ${videoId}`