mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 05:18:56 +01:00
make it two trys to be faster
This commit is contained in:
parent
ce16fffe9d
commit
7991cfc9b8
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ module.exports = async function (video_id) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
async function parsexml(id) {
|
async function parsexml(id) {
|
||||||
for (let i = 0; i < 3; i++) {
|
for (let i = 0; i < 2; i++) {
|
||||||
try {
|
try {
|
||||||
const player = await fetch(`${new_api_url}?v=${id}`, headers);
|
const player = await fetch(`${new_api_url}?v=${id}`, headers);
|
||||||
var h = await player.text();
|
var h = await player.text();
|
||||||
|
|
Loading…
Reference in a new issue