This commit is contained in:
Dragon Fire
2024-03-22 13:38:56 -04:00
parent fee7886675
commit cea8e3ed6d
+1 -1
View File
@@ -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) {