From 3e2e31e4a42ac5f4840d66bd55a8c269a540261a Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Thu, 22 Feb 2024 07:11:57 -0600 Subject: [PATCH] Allow disabling last song check, for testing purposes Also, fix album cover erroring out. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c3abb58..1bfb172 100644 --- a/index.js +++ b/index.js @@ -70,7 +70,7 @@ async function getVideo() { if (checkLastSong({ name: trackData.name, channelName: trackData.artist.name - })) { + }) && process.argv[2] != "nls") { console.log("Last song check failed"); return null; } else { @@ -240,7 +240,7 @@ async function main() { }) let albumCover; - if (!(await checkNextcloudAlbum(video, nextcloudClient)) && video.albumCover != null) { + if (video.albumCover?.length > 0 && !(await checkNextcloudAlbum(video, nextcloudClient)) && video.albumCover != null) { albumCover = await downloadAlbumCover(video); }