mirror of
https://github.com/beetbox/beets.git
synced 2026-01-27 02:23:36 +01:00
Update listenbrainz.py
This commit is contained in:
parent
d4cb8ff654
commit
2c25076fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ class ListenBrainzPlugin(BeetsPlugin):
|
|||
),
|
||||
)
|
||||
|
||||
if response["status"] == "ok":
|
||||
if response is not None:
|
||||
return response["payload"]["listens"]
|
||||
else:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue