chore: scrobbling

This commit is contained in:
Cory Dransfeldt 2024-03-29 12:01:16 -07:00
parent 36dd33bbd9
commit 2251eb087b
No known key found for this signature in database

View file

@ -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