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:
@@ -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 })
|
||||
}
|
Reference in New Issue
Block a user