From b5e34674ebe7a52b6289358f790c3c11386cf15c Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Thu, 25 Apr 2024 18:15:11 +0000 Subject: [PATCH] Update src/libpoketube/libpoketube-core.js --- 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 8b541b26..bce7779e 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -110,8 +110,8 @@ async getYouTubeApiVideo(f, v, contentlang, contentregion) { let retryCount = 0; while (vid.error && retryCount < 1) { - console.log(`Retrying fetching videoInfo from iv.ggtyler.dev... Retry ${retryCount + 1}`); - const retryVideoInfo = await fetch(`https://iv.ggtyler.dev/api/v1/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()); + console.log(`Retrying: ${retryCount + 1}`); + const retryVideoInfo = await fetch(`https://par1.iv.ggtyler.dev/api/v1/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()); vid = await this.getJson(retryVideoInfo); retryCount++; }