mirror of
https://github.com/beetbox/beets.git
synced 2026-01-10 09:58:45 +01:00
Update listenbrainz.py
This commit is contained in:
parent
969ff61cf9
commit
0d56ec7232
1 changed files with 2 additions and 2 deletions
|
|
@ -74,11 +74,11 @@ class ListenBrainzPlugin(BeetsPlugin):
|
|||
An IndexError if the JSON is not structured as expected.
|
||||
"""
|
||||
url = f"{self.ROOT}/user/{self.username}/listens"
|
||||
params={
|
||||
params = {k: v for k, v in {
|
||||
"min_ts": min_ts,
|
||||
"max_ts": max_ts,
|
||||
"count": count,
|
||||
},
|
||||
}.items() if v is not None},
|
||||
response = self._make_request(url, params)
|
||||
|
||||
if response is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue