diff options
-rwxr-xr-x | src/upd8.js | 6 |
1 files changed, 1 insertions, 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) { |