mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 01:23:09 +01:00
Update listenbrainz.py
This commit is contained in:
parent
2c25076fbf
commit
619fb17383
1 changed files with 2 additions and 5 deletions
|
|
@ -71,11 +71,8 @@ class ListenBrainzPlugin(BeetsPlugin):
|
|||
A ValueError if the JSON in the response is invalid.
|
||||
An IndexError if the JSON is not structured as expected.
|
||||
"""
|
||||
response = self._make_request(
|
||||
url="http://{0}/1/user/{1}/listens".format(
|
||||
self.ROOT, self.username
|
||||
),
|
||||
)
|
||||
url = f"{self.ROOT}/user/{self.username}/listens"
|
||||
response = self._make_request(url)
|
||||
|
||||
if response is not None:
|
||||
return response["payload"]["listens"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue