diff options
Diffstat (limited to 'src/data/things/track.js')
-rw-r--r-- | src/data/things/track.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js index 7188178a..f514f7bb 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -724,6 +724,17 @@ export class Track extends Thing { // Track YAML loading is handled in album.js. static [Thing.getYamlLoadingSpec] = null; + getOwnArtworkPath(_artwork) { + if (!this.album) return null; + + return [ + 'media.trackCover', + this.album.directory, + this.directory, + this.coverArtFileExtension, + ]; + } + [inspect.custom](depth) { const parts = []; |