playlist download progressBar using chokidar

This commit is contained in:
Araxeus
2021-05-06 04:41:58 +03:00
parent 13fb686188
commit 53bf7c5068
4 changed files with 74 additions and 20 deletions

View File

@ -184,19 +184,13 @@ module.exports = {
ipcRenderer.on(
"downloader-download-playlist",
(_, url, playlistFolder, options) => {
const reinit = () =>
ipcRenderer.send("downloader-feedback", defaultMenuDownloadLabel);
downloadVideoToMP3(
url,
(feedback) => {
ipcRenderer.send("downloader-feedback", feedback);
},
() => {},
(error) => {
triggerAction(CHANNEL, ACTIONS.ERROR, error);
reinit();
},
reinit,
() => {},
options,
null,
playlistFolder