chore: scrobbling
This commit is contained in:
parent
2251eb087b
commit
f4d1e621bc
1 changed files with 2 additions and 2 deletions
|
@ -57,9 +57,9 @@ export default async (request, context) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
return {}
|
return {}
|
||||||
});
|
});
|
||||||
const track = trackRes["recenttracks"]["track"][0];
|
const trackData = trackRes["recenttracks"]["track"][0];
|
||||||
let mbid = trackRes['track']['artist']['mbid']
|
let mbid = trackRes['track']['artist']['mbid']
|
||||||
const mbidMap = () => mbidRes[track["artist"]["#text"].toLowerCase()] || "";
|
const mbidMap = () => mbidRes[trackData['artist']['#text'].toLowerCase()] || "";
|
||||||
|
|
||||||
// mbid mismatches
|
// mbid mismatches
|
||||||
if (mbidMap() !== "") mbid = mbidMap();
|
if (mbidMap() !== "") mbid = mbidMap();
|
||||||
|
|
Reference in a new issue