From 52c8d3dd192159e12184217d42d6ad09b2a84bb4 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 23 Sep 2022 19:00:57 +0200 Subject: [PATCH] make it two trys to be faster --- src/fetcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetcher.js b/src/fetcher.js index 0ea22e22..1bf082cb 100644 --- a/src/fetcher.js +++ b/src/fetcher.js @@ -35,7 +35,7 @@ module.exports = async function (video_id) { */ async function parsexml(id) { - for (let i = 0; i < 3; i++) { + for (let i = 0; i < 2; i++) { try { const player = await fetch(`${new_api_url}?v=${id}`, headers); var h = await player.text();