Allow disabling last song check, for testing purposes
Also, fix album cover erroring out.
This commit is contained in:
parent
adafe5e44a
commit
3e2e31e4a4
1 changed files with 2 additions and 2 deletions
4
index.js
4
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue