From bc2db22a9c1f6475aaf901933e54eb85d005e031 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 1 Feb 2022 20:36:12 -0400 Subject: respect directory refs in early validation code --- src/upd8.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/upd8.js b/src/upd8.js index 6f538d18..f78a21c4 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -2617,7 +2617,7 @@ async function main() { }; let CR4SH = false; for (let name of artistNames) { - const entry = [...WD.artistData, ...WD.artistAliasData].find(entry => entry.name === name || entry.name.toLowerCase() === name.toLowerCase()); + const entry = find.artist(name, {wikiData}); if (!entry) { clearBuffer(); console.log(`\x1b[31mMissing entry for artist "\x1b[1m${name}\x1b[0;31m"\x1b[0m`); @@ -2627,10 +2627,6 @@ async function main() { console.log(`\x1b[33mArtist "\x1b[1m${name}\x1b[0;33m" should be named "\x1b[1m${entry.alias}\x1b[0;33m"\x1b[0m`); showWhere(name, 33); CR4SH = true; - } else if (entry.name !== name) { - console.log(`\x1b[33mArtist "\x1b[1m${name}\x1b[0;33m" should be named "\x1b[1m${entry.name}\x1b[0;33m"\x1b[0m`); - showWhere(name, 33); - CR4SH = true; } else { buffer.push(entry); if (buffer.length > 3) { -- cgit 1.3.0-6-gf8a5