mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 18:21:47 +00:00
custom metadata on playlist-download
This commit is contained in:
@ -35,7 +35,9 @@ module.exports = (win, options, refreshMenu) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const playlist = await ytpl(playlistID, { limit: Infinity });
|
const playlist = await ytpl(playlistID,
|
||||||
|
{ limit: options.playlistMaxItems || Infinity }
|
||||||
|
);
|
||||||
const playlistTitle = playlist.title;
|
const playlistTitle = playlist.title;
|
||||||
|
|
||||||
const folder = getFolder(options.downloadFolder);
|
const folder = getFolder(options.downloadFolder);
|
||||||
@ -63,7 +65,7 @@ module.exports = (win, options, refreshMenu) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
playlist.items.slice(0, options.playlistMaxItems).forEach((song) => {
|
playlist.items.forEach((song) => {
|
||||||
win.webContents.send(
|
win.webContents.send(
|
||||||
"downloader-download-playlist",
|
"downloader-download-playlist",
|
||||||
song,
|
song,
|
||||||
|
|||||||
@ -198,7 +198,7 @@ ipcRenderer.on(
|
|||||||
},
|
},
|
||||||
reinit,
|
reinit,
|
||||||
options,
|
options,
|
||||||
songMetadata,
|
null,
|
||||||
playlistFolder
|
playlistFolder
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user