Set get_top_tracks limit even if it's None
To get an unlimited number of top tracks, `_get_things` expects `params['limit']` to be set to `None`. However, this can't happen here because `None` is falsy. Fixes #366.
This commit is contained in:
parent
aad860a222
commit
4e645ca134
|
@ -2531,8 +2531,7 @@ class User(_Chartable):
|
|||
|
||||
params = self._get_params()
|
||||
params["period"] = period
|
||||
if limit:
|
||||
params["limit"] = limit
|
||||
params["limit"] = limit
|
||||
|
||||
return self._get_things("getTopTracks", Track, params, cacheable, stream=stream)
|
||||
|
||||
|
|
Loading…
Reference in a new issue