Skip to content

Commit

Permalink
# 25
Browse files Browse the repository at this point in the history
  • Loading branch information
milankomaj committed Oct 3, 2023
1 parent 79e1bf1 commit 1266b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/lastfm.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function handleLastfm({
const endpoint2 = `https://ws.audioscrobbler.com/2.0/?method=artist.gettoptags&artist=${encodeURIComponent(lastPartist)}&api_key=${LASTFM_KEY}&format=json`
const resp2 = await fetch(endpoint2, { method: "get", headers: { "Cache-Control": "no-store" } });
const { toptags } = await resp2.json();
const lastPgenre = (toptags.tag['0'].name);
const lastPgenre = (toptags.tag['0']) ? (toptags.tag['0'].name) : "";
// console.log("👉 log:",lastPgenre)
const lastPnow = (recenttracks.track['0']['@attr'])

Expand Down

0 comments on commit 1266b1f

Please sign in to comment.