Ability to disable album art for playlists (#159)

This commit is contained in:
Simon J
2023-04-22 10:54:38 +10:00
committed by GitHub
parent 8111041551
commit f6fc7ab920
6 changed files with 57 additions and 26 deletions

View File

@@ -266,6 +266,9 @@ export const playlistAlbumArtURL = (
bonobUrl: URLBuilder,
playlist: Playlist
) => {
// todo: this should be put into config, or even just removed for the ND music source
if(process.env["BNB_DISABLE_PLAYLIST_ART"]) return iconArtURI(bonobUrl, "music");
const burns: BUrn[] = uniq(
playlist.entries.filter((it) => it.coverArt != undefined),
(it) => it.album.id