From a07125a6500366436e536be1737105ede1be97c5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 11 Jun 2026 17:36:54 -0300 Subject: data: Album.hasCoverArt: default true for in-game vgm --- src/data/things/album/Album.js | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) (limited to 'src/data/things/album') 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'], + }, ], }; -- cgit 1.3.0-6-gf8a5