diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-06-11 17:36:54 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-06-11 17:36:54 -0300 |
| commit | a07125a6500366436e536be1737105ede1be97c5 (patch) | |
| tree | c51948d9b1f9d8108467ecb3d47a0d94f338f203 /src/data/things/album | |
| parent | 7b04db33ff3b14e90e213b032864038baf64e694 (diff) | |
data: Album.hasCoverArt: default true for in-game vgm
Diffstat (limited to 'src/data/things/album')
| -rw-r--r-- | src/data/things/album/Album.js | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/src/data/things/album/Album.js b/src/data/things/album/Album.js index e32e8044..1d1e8aac 100644 --- a/src/data/things/album/Album.js +++ b/src/data/things/album/Album.js @@ -332,10 +332,24 @@ export class Album extends Thing { .call(this, 'Cover Artwork'), ], - hasCoverArt: hasArtwork({ - contribs: '_coverArtistContribs', - artworks: '_coverArtworks', - }), + hasCoverArt: [ + { + dependencies: ['style'], + compute: (continuation, {style}) => + continuation({ + ['#default']: + (style === 'in-game vgm' + ? true + : false), + }), + }, + + hasArtwork({ + contribs: '_coverArtistContribs', + artworks: '_coverArtworks', + default: '#default', + }), + ], coverArtistContribs: contributionList({ date: 'coverArtDate', @@ -1020,6 +1034,17 @@ export class Album extends Thing { 'Wallpaper Parts', 'Wallpaper File Extension', ]}, + + { + message: `Albums of style 'in-game vgm' have cover art by default`, + + fields: [ + ['Has Cover Art', true], + ['Style', 'in-game vgm'], + ], + + drop: ['Has Cover Art'], + }, ], }; |