From a019724285d12e721f3f443d7b8fd9efddb1dac5 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 19 Mar 2024 17:03:14 -0700 Subject: [PATCH] fix: typo --- api/now-playing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/now-playing.js b/api/now-playing.js index b139e693..16274760 100644 --- a/api/now-playing.js +++ b/api/now-playing.js @@ -123,7 +123,7 @@ export default async () => { console.log(err); return {} }); - const artistCapitalzationRes = await fetch("https://coryd.dev/api/artist-capitalization", { + const artistCapitalizationRes = await fetch("https://coryd.dev/api/artist-capitalization", { type: "json", }).then((data) => { if (data.ok) return data.json() @@ -135,7 +135,7 @@ export default async () => { const track = trackRes["recenttracks"]["track"][0]; let mbid = track["artist"]["mbid"]; let genre = ''; - const artistCapitalization = (artist) => artistCapitalzationRes[artist?.toLowerCase()] || artist + const artistCapitalization = (artist) => artistCapitalizationRes[artist?.toLowerCase()] || artist const artist = artistCapitalization(track["artist"]["#text"]); const mbidMap = () => mbidRes[track["artist"]["#text"].toLowerCase()] || "";