Skip to content

Commit 7b77acd

Browse files
committed
tidal: fix some playlists failing to load
1 parent e26e10d commit 7b77acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/player/tidal/tidal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ async function getPlaylistData(data: PlaylistDataShort): Promise<PlaylistData> {
562562
albumId: song.item.album ? "" + song.item.album.id : undefined,
563563
artists: artists,
564564
artistString: artistString.substring(0, artistString.length - 2),
565-
albumCoverUrl: song.item.album ? TIDAL_RESOURCES_URL + "images/" + song.item.album.cover.replaceAll('-', '/') + "/750x750.jpg" : undefined,
565+
albumCoverUrl: song.item.album && song.item.album.cover ? TIDAL_RESOURCES_URL + "images/" + song.item.album.cover.replaceAll('-', '/') + "/750x750.jpg" : undefined,
566566
playlist: "tidal_" + data.identifier,
567567
index: i,
568568
}

0 commit comments

Comments
 (0)