From 2251eb087bfa94d0500665c75bfae8ca7e8d2b99 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 29 Mar 2024 12:01:16 -0700 Subject: [PATCH] chore: scrobbling --- api/scrobble.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/scrobble.js b/api/scrobble.js index c562e9fd..ef3cdf92 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -57,7 +57,8 @@ export default async (request, context) => { console.log(err); return {} }); - const mbid = trackRes['track']['artist']['mbid'] + const track = trackRes["recenttracks"]["track"][0]; + let mbid = trackRes['track']['artist']['mbid'] const mbidMap = () => mbidRes[track["artist"]["#text"].toLowerCase()] || ""; // mbid mismatches