From 9a97436cd8a3a94c08cf89c5f3246608f88ae77c Mon Sep 17 00:00:00 2001 From: TC Date: Wed, 2 Dec 2020 21:16:12 +0100 Subject: [PATCH] Allow up to 3 retries in downloader --- plugins/downloader/youtube-dl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/downloader/youtube-dl.js b/plugins/downloader/youtube-dl.js index 2640265b..540f24d8 100644 --- a/plugins/downloader/youtube-dl.js +++ b/plugins/downloader/youtube-dl.js @@ -29,6 +29,7 @@ const downloadVideoToMP3 = (videoUrl, sendFeedback, sendError, reinit) => { filter: "audioonly", quality: "highestaudio", highWaterMark: 32 * 1024 * 1024, // 32 MB + requestOptions: { maxRetries: 3 }, }); } catch (err) { sendError(err);