diff --git a/api/scrobble.js b/api/scrobble.js index 30168a0b..30e16f40 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -56,6 +56,11 @@ export default async (request) => { timestamp, genre: artistsMap[artistSanitizedKey(artist)]?.['genre'] || '' } + + console.log(artistsMap[artistSanitizedKey(artist)]) + console.log(artistsMap[artistSanitizedKey(artist)]?.['genre']) + console.log(artistsMap[artistSanitizedKey(artist)]?.['mbid']) + const scrobbleData = await scrobbles.get(`${weekKey()}`, { type: 'json'}) const windowData = await scrobbles.get('window', { type: 'json'}) const artistUrl = (artistsMap[artistSanitizedKey(artist)]?.['mbid'] && artistsMap[artistSanitizedKey(artist)]?.['mbid'] !== '') ? `http://musicbrainz.org/artist/${artistsMap[artistSanitizedKey(artist)]?.['mbid']}` : `https://musicbrainz.org/search?query=${artist.replace(