Skip to content

Commit 13fb686

Browse files
committed
started playlist downlaod messageBox
1 parent 61c5494 commit 13fb686

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

plugins/downloader/menu.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = (win, options, refreshMenu) => {
3535
return;
3636
}
3737

38-
const playlist = await ytpl(playlistID,
38+
const playlist = await ytpl(playlistID,
3939
{ limit: options.playlistMaxItems || Infinity }
4040
);
4141
const playlistTitle = playlist.title;
@@ -59,6 +59,14 @@ module.exports = (win, options, refreshMenu) => {
5959
downloadLabel = `Downloading "${playlistTitle}"`;
6060
refreshMenu();
6161

62+
dialog.showMessageBox({
63+
type: "info",
64+
buttons: ["OK"],
65+
title: "Started Download",
66+
message: `Downloading Playlist "${playlistTitle}"`,
67+
detail: `(${playlist.items.length} songs)`,
68+
});
69+
6270
if (is.dev()) {
6371
console.log(
6472
`Downloading playlist "${playlistTitle}" (${playlist.items.length} songs)`
@@ -68,7 +76,7 @@ module.exports = (win, options, refreshMenu) => {
6876
playlist.items.forEach((song) => {
6977
win.webContents.send(
7078
"downloader-download-playlist",
71-
song,
79+
song.url,
7280
playlistTitle,
7381
options
7482
);

plugins/downloader/youtube-dl.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,12 @@ module.exports = {
183183

184184
ipcRenderer.on(
185185
"downloader-download-playlist",
186-
(_, songMetadata, playlistFolder, options) => {
186+
(_, url, playlistFolder, options) => {
187187
const reinit = () =>
188188
ipcRenderer.send("downloader-feedback", defaultMenuDownloadLabel);
189189

190190
downloadVideoToMP3(
191-
songMetadata.url,
191+
url,
192192
(feedback) => {
193193
ipcRenderer.send("downloader-feedback", feedback);
194194
},

0 commit comments

Comments
 (0)