mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 10:18:26 +01:00
Update src/libpoketube/libpoketube-core.js
This commit is contained in:
parent
1c6673f62e
commit
b5e34674eb
1 changed files with 2 additions and 2 deletions
|
@ -110,8 +110,8 @@ async getYouTubeApiVideo(f, v, contentlang, contentregion) {
|
||||||
|
|
||||||
let retryCount = 0;
|
let retryCount = 0;
|
||||||
while (vid.error && retryCount < 1) {
|
while (vid.error && retryCount < 1) {
|
||||||
console.log(`Retrying fetching videoInfo from iv.ggtyler.dev... Retry ${retryCount + 1}`);
|
console.log(`Retrying: ${retryCount + 1}`);
|
||||||
const retryVideoInfo = await fetch(`https://iv.ggtyler.dev/api/v1/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text());
|
const retryVideoInfo = await fetch(`https://par1.iv.ggtyler.dev/api/v1/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text());
|
||||||
vid = await this.getJson(retryVideoInfo);
|
vid = await this.getJson(retryVideoInfo);
|
||||||
retryCount++;
|
retryCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue