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); }