mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 16:37:52 +01:00
mb
This commit is contained in:
parent
b9992fc0df
commit
3270d2b5a0
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ async getYouTubeApiVideo(f, v, contentlang, contentregion) {
|
|||
let retryCount = 0;
|
||||
while (vid.error && retryCount < 1) {
|
||||
console.log(`Retrying fetching videoInfo... Retry ${retryCount + 1}`);
|
||||
const retryVideoInfo = await fetch(`https://iv.ggtyler.dev/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text());
|
||||
const retryVideoInfo = await fetch(`https://iv.ggtyler.dev/api/v1/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text());
|
||||
vid = await this.getJson(retryVideoInfo);
|
||||
retryCount++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue