diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 265f340e..3f901755 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 }); - while (response.status === 500) { + if (response.status === 500) { // If status is 500, fetch again return fetchData(url, headers); }