mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Allow up to 3 retries in downloader
This commit is contained in:
@ -29,6 +29,7 @@ const downloadVideoToMP3 = (videoUrl, sendFeedback, sendError, reinit) => {
|
|||||||
filter: "audioonly",
|
filter: "audioonly",
|
||||||
quality: "highestaudio",
|
quality: "highestaudio",
|
||||||
highWaterMark: 32 * 1024 * 1024, // 32 MB
|
highWaterMark: 32 * 1024 * 1024, // 32 MB
|
||||||
|
requestOptions: { maxRetries: 3 },
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
sendError(err);
|
sendError(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user