mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
Update spotify.ts
Signed-off-by: skidoodle <contact@albert.lol>
This commit is contained in:
parent
9a5ac2e681
commit
c6bef350e8
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ export default async function handler(
|
|||
) {
|
||||
try {
|
||||
const song = await spotify.getCurrentSong()
|
||||
if (!song.is_playing) {
|
||||
if (!song.is_playing || !song) {
|
||||
return res.status(200).json({
|
||||
is_playing: false,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue