fix: typo

This commit is contained in:
Cory Dransfeldt 2024-03-19 17:03:14 -07:00
parent 2cf86f95d9
commit a019724285
No known key found for this signature in database

View file

@ -123,7 +123,7 @@ export default async () => {
console.log(err); console.log(err);
return {} return {}
}); });
const artistCapitalzationRes = await fetch("https://coryd.dev/api/artist-capitalization", { const artistCapitalizationRes = await fetch("https://coryd.dev/api/artist-capitalization", {
type: "json", type: "json",
}).then((data) => { }).then((data) => {
if (data.ok) return data.json() if (data.ok) return data.json()
@ -135,7 +135,7 @@ export default async () => {
const track = trackRes["recenttracks"]["track"][0]; const track = trackRes["recenttracks"]["track"][0];
let mbid = track["artist"]["mbid"]; let mbid = track["artist"]["mbid"];
let genre = ''; let genre = '';
const artistCapitalization = (artist) => artistCapitalzationRes[artist?.toLowerCase()] || artist const artistCapitalization = (artist) => artistCapitalizationRes[artist?.toLowerCase()] || artist
const artist = artistCapitalization(track["artist"]["#text"]); const artist = artistCapitalization(track["artist"]["#text"]);
const mbidMap = () => mbidRes[track["artist"]["#text"].toLowerCase()] || ""; const mbidMap = () => mbidRes[track["artist"]["#text"].toLowerCase()] || "";