chore: scrobbling

This commit is contained in:
Cory Dransfeldt 2024-03-29 12:27:19 -07:00
parent f010fb01c6
commit 2f982b8f7e
No known key found for this signature in database

View file

@ -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();