From 9d2efe84a975d5d90a5865587e2256618dd9bd30 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 3 Mar 2023 18:51:18 +0000 Subject: [PATCH] add region :3 --- src/libpoketube/libpoketube-core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 3b941a1a..6deea38b 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -81,7 +81,7 @@ async function video(v) { var desc = ""; try { - var inv_comments = await fetch(`${config.invapi}/comments/${v}`).then( + var inv_comments = await fetch(`${config.invapi}/comments/${v}?region=US`).then( (res) => res.text() ); @@ -93,7 +93,7 @@ async function video(v) { let vid; try { - const videoInfo = await fetch(`https://yt.oelrichsgarcia.de/api/v1/videos/${v}`).then(res => res.text()); + const videoInfo = await fetch(`https://yt.oelrichsgarcia.de/api/v1/videos/${v}?region=US`).then(res => res.text()); vid = await getJson(videoInfo); } catch (error) {