mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +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 { text } = await request.get(`https://open.spotify.com/embed/track/${id}`);
|
||||||
const $ = cheerio.load(text);
|
const $ = cheerio.load(text);
|
||||||
const body = JSON.parse(decodeURIComponent($('script[id="__NEXT_DATA__"]')[0].children[0].data));
|
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) {
|
shortTrackName(longName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user