Removed 25 items limit in getUserFavorites in app.py

This commit is contained in:
RemixDev 2020-11-20 09:14:58 +01:00
parent 8479805074
commit 2a277db76a
No known key found for this signature in database
GPG key ID: B33962B465BDB51C

16
app.py
View file

@ -199,15 +199,15 @@ class deemix:
if dz.logged_in: if dz.logged_in:
user_id = dz.current_user['id'] user_id = dz.current_user['id']
try: try:
result['playlists'] = dz.api.get_user_playlists(user_id)['data'] result['playlists'] = dz.api.get_user_playlists(user_id, limit=-1)['data']
result['albums'] = dz.api.get_user_albums(user_id)['data'] result['albums'] = dz.api.get_user_albums(user_id, limit=-1)['data']
result['artists'] = dz.api.get_user_artists(user_id)['data'] result['artists'] = dz.api.get_user_artists(user_id, limit=-1)['data']
result['tracks'] = dz.api.get_user_tracks(user_id)['data'] result['tracks'] = dz.api.get_user_tracks(user_id, limit=-1)['data']
except: except:
result['playlists'] = dz.gw.get_user_playlists(user_id) result['playlists'] = dz.gw.get_user_playlists(user_id, limit=-1)
result['albums'] = dz.gw.get_user_albums(user_id) result['albums'] = dz.gw.get_user_albums(user_id, limit=-1)
result['artists'] = dz.gw.get_user_artists(user_id) result['artists'] = dz.gw.get_user_artists(user_id, limit=-1)
result['tracks'] = dz.gw.get_user_tracks(user_id) result['tracks'] = dz.gw.get_user_tracks(user_id, limit=-1)
return result return result
def updateUserSpotifyPlaylists(self, user): def updateUserSpotifyPlaylists(self, user):