From a2eb3a3319c749d55559a4826d22001a7af019c6 Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Sat, 4 Mar 2023 14:16:22 +0200 Subject: [PATCH] helpful error when trying to download a private or "mixed for you" playlist --- plugins/downloader/back.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/downloader/back.js b/plugins/downloader/back.js index 6e9cbe42..09aa0e06 100644 --- a/plugins/downloader/back.js +++ b/plugins/downloader/back.js @@ -299,7 +299,7 @@ async function downloadPlaylist(givenUrl) { limit: options.playlistMaxItems || Infinity, }); } catch (e) { - sendError(e); + sendError("Error getting playlist info: make sure it isn't a private or \"Mixed for you\" playlist\n\n" + e); return; } let isAlbum = playlist.title.startsWith('Album - '); @@ -349,7 +349,7 @@ async function downloadPlaylist(givenUrl) { sendFeedback(`Downloading ${counter}/${playlist.items.length}...`); const trackId = isAlbum ? counter : undefined; await downloadSong(song.url, playlistFolder, trackId, increaseProgress) - .catch((e) => sendError(`Error downloading "${song.author} - ${song.title}":\n ${e}`)); + .catch((e) => sendError(`Error downloading "${song.author.name} - ${song.title}":\n ${e}`)); win.setProgressBar(counter / playlist.items.length); setBadge(playlist.items.length - counter);