diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-02-25 20:26:12 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-02-25 20:26:12 -0400 |
commit | a7281f12ee5fc52f8b748bb1fb555a057e8e6677 (patch) | |
tree | b19663c7ddf0700d3c339b0ee8e13e0f6fba8fe3 /src/util | |
parent | adb267431909a3d263bb4f931fa49b2158f024f7 (diff) |
inherit hasTrackArt and use in getTrackCover util
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/wiki-data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js index 41071d17..36c61454 100644 --- a/src/util/wiki-data.js +++ b/src/util/wiki-data.js @@ -159,7 +159,7 @@ export function getTotalDuration(tracks) { export function getTrackCover(track, {to}) { // Some al8ums don't have any track art at all, and in those, every track // just inherits the al8um's own cover art. - if (track.coverArtists === null) { + if (!track.hasCoverArt) { return getAlbumCover(track.album, {to}); } else { return to('media.trackCover', track.album.directory, track.directory); |