Allow up to 3 retries in downloader

This commit is contained in:
TC
2020-12-02 21:16:12 +01:00
parent f7935c0024
commit 9a97436cd8

View File

@ -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);