remove 500 chec

This commit is contained in:
Ashley //// 2024-04-22 11:25:56 +00:00
parent 7e2c544872
commit f593fbd876

View file

@ -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<string>} 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();
}