« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/checks.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data/checks.js b/src/data/checks.js
index a0c4858f..88dfbc6d 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -615,6 +615,15 @@ export function filterReferenceErrors(wikiData, {
                   }
                 }
 
+                if (thing.constructor === thingConstructors.Album) {
+                  if (
+                    thing.style === 'in-game vgm' &&
+                    CacheableObject.getUpdateValue(thing, 'hasCoverArt') !== false
+                  ) {
+                    hasCoverArtwork = true;
+                  }
+                }
+
                 if (!hasCoverArtwork) {
                   nest({message: errorMessage}, ({push}) => {
                     push(new TypeError(`No cover artwork, so this shouldn't have art tags specified`));