From f27c98a228847d5f300a2d3c1252294d673b639e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 12 Mar 2022 17:06:54 -0400 Subject: tracks have cover art if cover artists present --- src/data/things.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/data/things.js b/src/data/things.js index b48642a6..5889b119 100644 --- a/src/data/things.js +++ b/src/data/things.js @@ -609,9 +609,12 @@ Track.propertyDescriptors = { update: {validate: isBoolean}, expose: { - dependencies: ['albumData'], - transform: (hasCoverArt, { albumData, [Track.instance]: track }) => ( - hasCoverArt ?? Track.findAlbum(track, albumData)?.hasTrackArt ?? true) + dependencies: ['albumData', 'coverArtistContribsByRef'], + transform: (hasCoverArt, { albumData, coverArtistContribsByRef, [Track.instance]: track }) => ( + hasCoverArt ?? + (coverArtistContribsByRef?.length > 0 || null) ?? + Track.findAlbum(track, albumData)?.hasTrackArt ?? + true) } }, -- cgit 1.3.0-6-gf8a5