mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 04:28:03 +01:00
remove 500 chec
This commit is contained in:
parent
7e2c544872
commit
f593fbd876
1 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue