diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 353116a3..1fb0287a 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -81,7 +81,7 @@ class InnerTubePokeVidious { */ const response = await fetch(url, { headers }); - if (response.status === 500) { + while (response.status === 500) { // If status is 500, fetch again console.log("Retrying due to status 500..."); return fetchData(url, headers);