diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 3f901755..68de8ad7 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -70,7 +70,7 @@ class InnerTubePokeVidious { */ async getYouTubeApiVideo(f, v, contentlang, contentregion) { /** - * Fetch data from the specified URL with the given headers, retrying if status code is 500. + * Fetch data from the specified URL with the given headers. * @param {string} url - The URL to fetch data from. * @param {Object} headers - The headers to include in the fetch request. * @returns {Promise} A promise that resolves to the text content of the response. @@ -81,11 +81,6 @@ class InnerTubePokeVidious { */ const response = await fetch(url, { headers }); - if (response.status === 500) { - // If status is 500, fetch again - return fetchData(url, headers); - } - return response.text(); }