From efe984a412c910ce2b1ee806efc24abbd0e23e20 Mon Sep 17 00:00:00 2001 From: Ashley Date: Tue, 20 Dec 2022 11:52:34 +0000 Subject: [PATCH] fix RYD api --- src/libpoketube/libpoketube-fetcher.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/libpoketube-fetcher.js b/src/libpoketube/libpoketube-fetcher.js index 187e7508..32caf60d 100644 --- a/src/libpoketube/libpoketube-fetcher.js +++ b/src/libpoketube/libpoketube-fetcher.js @@ -33,8 +33,10 @@ function getJson(str) { } } - const dislike = await fetch(`${dislike_api}${video_id}`) - const engagement = getJson(dislike) + const engagement = await fetch(`${dislike_api}${video_id}`).then((res) => + res.json() + ); + const headers = {}; /*