mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
@@ -21,7 +21,7 @@ export default async function handler(
|
|||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
const song = await spotify.getCurrentSong()
|
const song = await spotify.getCurrentSong()
|
||||||
if (!song.is_playing) {
|
if (!song.is_playing || !song) {
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
is_playing: false,
|
is_playing: false,
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user