1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 02:34:38 -05:00

Update src/libpoketube/libpoketube-core.js

This commit is contained in:
Ashley //// 2024-04-25 18:20:06 +00:00
parent b5e34674eb
commit 38a624bd48

View file

@ -109,7 +109,7 @@ async getYouTubeApiVideo(f, v, contentlang, contentregion) {
}
let retryCount = 0;
while (vid.error && retryCount < 1) {
while (vid.error && retryCount < 2) {
console.log(`Retrying: ${retryCount + 1}`);
const retryVideoInfo = await fetch(`https://par1.iv.ggtyler.dev/api/v1/videos/${v}?hl=${contentlang}&region=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text());
vid = await this.getJson(retryVideoInfo);