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:
Chandler Swift 2021-04-27 15:29:26 -05:00
parent aad860a222
commit 4e645ca134
No known key found for this signature in database
GPG key ID: A851D929D52FB93F

View file

@ -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)