playlist fix
This commit is contained in:
parent
e3a1680c90
commit
a9e3bfcf98
@ -39,7 +39,7 @@ class Api:
|
|||||||
return self._format_req(req.json())
|
return self._format_req(req.json())
|
||||||
|
|
||||||
def _format_req(self, r):
|
def _format_req(self, r):
|
||||||
if not r["is_playing"]:
|
if not r["is_playing"] or r["currently_playing_type"] != "track":
|
||||||
return "not-playing"
|
return "not-playing"
|
||||||
item, album = r["item"], r["item"]["album"]
|
item, album = r["item"], r["item"]["album"]
|
||||||
res = {
|
res = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user