From 3ed47144579ecc8b4e53f4dc2650b825e448aab2 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Thu, 7 Mar 2024 12:40:56 +0100 Subject: [PATCH] fmtt: fix time period not working --- util/lastfm/getTopTracks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lastfm/getTopTracks.js b/util/lastfm/getTopTracks.js index fad0ce3..c707d1d 100644 --- a/util/lastfm/getTopTracks.js +++ b/util/lastfm/getTopTracks.js @@ -25,7 +25,7 @@ module.exports = async function (userID, option) { const apiKey = process.env.LAST_FM_API_KEY; if(lastfmUsername != undefined){ tracks = await new Promise ((resolve, reject) => { - fetch(`https://ws.audioscrobbler.com/2.0/?method=user.gettoptracks&user=${lastfmUsername}&period${option[0]}&api_key=${apiKey}&format=json`) + fetch(`https://ws.audioscrobbler.com/2.0/?method=user.gettoptracks&user=${lastfmUsername}&period=${option[0]}&api_key=${apiKey}&format=json`) .then(response => response.json()) .then(data => { for(let i = 0; i < 10; i++){