mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
custom metadata on playlist-download
This commit is contained in:
@ -35,7 +35,9 @@ module.exports = (win, options, refreshMenu) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const playlist = await ytpl(playlistID, { limit: Infinity });
|
||||
const playlist = await ytpl(playlistID,
|
||||
{ limit: options.playlistMaxItems || Infinity }
|
||||
);
|
||||
const playlistTitle = playlist.title;
|
||||
|
||||
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(
|
||||
"downloader-download-playlist",
|
||||
song,
|
||||
|
||||
Reference in New Issue
Block a user