mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Fix lint
This commit is contained in:
@@ -117,7 +117,7 @@ module.exports = class GuessSongCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fetchAlternativePreview(id) {
|
async fetchAlternativePreview(id) {
|
||||||
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);
|
||||||
return JSON.parse(decodeURIComponent($('script[id="resource"]')[0].children[0].data)).preview_url;
|
return JSON.parse(decodeURIComponent($('script[id="resource"]')[0].children[0].data)).preview_url;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user