From 71045bf94408c178daf50769c699cafd616e2bce Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 6 Apr 2023 11:51:45 -0400 Subject: [PATCH] Fix for #63 (#66) * Fix for #63 * Changelog --- CHANGELOG.md | 1 + playlet-lib/src/source/services/Invidious.bs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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