mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user