diff --git a/api/now-playing.js b/api/now-playing.js index d9f239e1..61298da2 100644 --- a/api/now-playing.js +++ b/api/now-playing.js @@ -1,24 +1,27 @@ const emojiMap = (genre, artist) => { const DEFAULT = "🎧"; - if (artist === "Augury") return "β˜„οΈ"; - if (artist === "Autopsy") return "🧟"; - if (artist === "Bedsore") return "πŸ›οΈ"; - if (artist === "Black Flag") return "🏴"; - if (artist === "Blood Incantation") return "πŸ‘½"; - if (artist === "Bolt Thrower") return "βš”οΈ" - if (artist === "Bruce Springsteen") return "πŸ‡ΊπŸ‡Έ"; - if (artist === "Carcass") return "πŸ₯Ό"; - if (artist === "Counting Crows") return "πŸ¦β€β¬›"; - if (artist === "David Bowie") return "πŸ‘¨πŸ»β€πŸŽ€"; - if (artist === "Devoid of Thought") return "πŸš«πŸ’­"; - if (artist === "Drug Church") return "πŸ’Šβ›ͺ️" - if (artist === "Full of Hell & Nothing") return "🫨🎸"; - if (artist === "Imperial Triumphant") return "🎭"; - if (artist === "Mastodon") return "πŸ‹"; - if (artist === "Minor Threat") return "πŸ‘¨πŸ»β€πŸ¦²"; - if (artist === "Panopticon") return "πŸͺ•πŸͺ¦"; - if (artist === "Taylor Swift") return "πŸ‘ΈπŸΌ"; - if (artist === "Webbed Wing") return "🀑"; + const normalizedArtist = artist?.toLowerCase(); + if (normalizedArtist === "agalloch") return "πŸ”οΈ"; + if (normalizedArtist === "augury") return "β˜„οΈ"; + if (normalizedArtist === "autopsy") return "🧟"; + if (normalizedArtist === "bedsore") return "πŸ›οΈ"; + if (normalizedArtist === "black flag") return "🏴"; + if (normalizedArtist === "blood incantation") return "πŸ‘½"; + if (normalizedArtist === "bolt thrower") return "βš”οΈ" + if (normalizedArtist === "bruce springsteen") return "πŸ‡ΊπŸ‡Έ"; + if (normalizedArtist === "carcass") return "πŸ₯Ό"; + if (normalizedArtist === "counting crows") return "πŸ¦β€β¬›"; + if (normalizedArtist === "david bowie") return "πŸ‘¨πŸ»β€πŸŽ€"; + if (normalizedArtist === "cevoid of thought") return "πŸš«πŸ’­"; + if (normalizedArtist === "drug church") return "πŸ’Šβ›ͺ️"; + if (normalizedArtist === "fleshwater") return "🐀"; + if (normalizedArtist === "full of hell & nothing") return "🫨🎸"; + if (normalizedArtist === "imperial triumphant") return "🎭"; + if (normalizedArtist === "mastodon") return "πŸ‹"; + if (normalizedArtist === "minor threat") return "πŸ‘¨πŸ»β€πŸ¦²"; + if (normalizedArtist === "panopticon") return "πŸͺ•πŸͺ¦"; + if (normalizedArtist === "taylor swift") return "πŸ‘ΈπŸΌ"; + if (normalizedArtist === "webbed wing") return "🀑"; // early return for bad input if (!genre) return DEFAULT;