diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-02-16 21:50:30 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-02-16 21:50:30 -0400 |
commit | e05923f043dc9419c90535171647e3e641fb6677 (patch) | |
tree | a6e21b81a9e2193e9696849243181bde87936a0d | |
parent | ad079e0c9e6ab32203bc684851e586ed10c3378c (diff) |
remove old dead case-detection code
-rwxr-xr-x | src/upd8.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/upd8.js b/src/upd8.js index 56fbd648..a797170f 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -2942,20 +2942,6 @@ async function main() { } } - { - const artists = []; - const artistsLC = []; - for (const name of artistRefs) { - if (!artists.includes(name) && artistsLC.includes(name.toLowerCase())) { - const other = artists.find(oth => oth.toLowerCase() === name.toLowerCase()); - console.log(`\x1b[31;1mMiscapitalized artist name: ${name}, ${other}\x1b[0m`); - return; - } - artists.push(name); - artistsLC.push(name.toLowerCase()); - } - } - WD.contributionData = Array.from(new Set([ ...WD.trackData.flatMap(track => [...track.artists || [], ...track.contributors || [], ...track.coverArtists || []]), ...WD.albumData.flatMap(album => [...album.artists || [], ...album.coverArtists || [], ...album.wallpaperArtists || [], ...album.bannerArtists || []]), |