mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
nem is spotify hanem lastfm
This commit is contained in:
parent
af344d5fcd
commit
2b6124cbf9
2 changed files with 18 additions and 8 deletions
|
@ -13,7 +13,7 @@ export default async function(req: NextApiRequest, res: NextApiResponse) {
|
|||
let nowplaying = Boolean(track[0]['@attr']?.nowplaying)
|
||||
|
||||
if(nowplaying) {
|
||||
res.status(200).json({
|
||||
return res.status(200).json({
|
||||
nowplaying,
|
||||
song: {
|
||||
artist: artist['#text'],
|
||||
|
@ -24,5 +24,5 @@ export default async function(req: NextApiRequest, res: NextApiResponse) {
|
|||
})
|
||||
}
|
||||
|
||||
res.status(200).json({ nowplaying })
|
||||
return res.status(200).json({ nowplaying })
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue