diff --git a/CHANGELOG.md b/CHANGELOG.md index 22a2993b..a2fc551b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - A crash where the metadata of a video is not validated [#57](https://github.com/iBicha/playlet/issues/57) - A crash where the video details in home screen are null [#56](https://github.com/iBicha/playlet/issues/56) +- A crash where the video details are not returned in json [#63](https://github.com/iBicha/playlet/issues/63) ## [0.8.0] - 2023-03-02 ### Added diff --git a/playlet-lib/src/source/services/Invidious.bs b/playlet-lib/src/source/services/Invidious.bs index d72bd16f..07a81390 100644 --- a/playlet-lib/src/source/services/Invidious.bs +++ b/playlet-lib/src/source/services/Invidious.bs @@ -61,9 +61,9 @@ namespace Invidious response = Requests().get(url, args) return { - success: response.statuscode = 200, + success: response.ok, statusCode: response.statuscode, - data: response.json ?? response.text + data: response.json } end function