From cea8e3ed6dfeb725ca91a6f92ca6d59644002a59 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 22 Mar 2024 13:38:56 -0400 Subject: [PATCH] Fix --- commands/games-sp/guess-song.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-sp/guess-song.js b/commands/games-sp/guess-song.js index b2999328..533c5fb4 100644 --- a/commands/games-sp/guess-song.js +++ b/commands/games-sp/guess-song.js @@ -128,7 +128,7 @@ module.exports = class GuessSongCommand extends Command { const { text } = await request.get(`https://open.spotify.com/embed/track/${id}`); const $ = cheerio.load(text); const body = JSON.parse(decodeURIComponent($('script[id="__NEXT_DATA__"]')[0].children[0].data)); - return body.props.pageProps.state.data.entity.audioPreview; + return body.props.pageProps.state.data.entity.audioPreview.url; } shortTrackName(longName) {