From 38a624bd48ac46692b3d2cede29b4785719b7f83 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Thu, 25 Apr 2024 18:20:06 +0000 Subject: [PATCH] Update src/libpoketube/libpoketube-core.js --- src/libpoketube/libpoketube-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index bce7779e..cc0f3d3d 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -109,7 +109,7 @@ async getYouTubeApiVideo(f, v, contentlang, contentregion) { } let retryCount = 0; - while (vid.error && retryCount < 1) { + while (vid.error && retryCount < 2) { 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);