From 2f982b8f7e4326ef5e01d21241747d4f7ac40a58 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 29 Mar 2024 12:27:19 -0700 Subject: [PATCH] chore: scrobbling --- api/scrobble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/scrobble.js b/api/scrobble.js index dee4994d..1a7e49dd 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -59,7 +59,7 @@ export default async (request, context) => { }); const trackData = trackRes['track']; let mbid = trackRes['track']['artist']['mbid'] - const mbidMap = () => mbidRes[trackData['artist']['#text'].toLowerCase()] || ""; + const mbidMap = () => mbidRes[trackData['artist']['name'].toLowerCase()] || ''; // mbid mismatches if (mbidMap() !== "") mbid = mbidMap();