Commit e4234d5b authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

bumped qobuz list sizes limit to 100

parent 4107b59f
...@@ -61,7 +61,7 @@ class Session(object): ...@@ -61,7 +61,7 @@ class Session(object):
def get_featured_albums(self, genre_id=None, type='new-releases'): def get_featured_albums(self, genre_id=None, type='new-releases'):
#uplog("get_featured_albums, genre_id %s type %s " % (genre_id, type)) #uplog("get_featured_albums, genre_id %s type %s " % (genre_id, type))
data = self.api.album_getFeatured(type=type, data = self.api.album_getFeatured(type=type,
genre_id=genre_id, limit=40) genre_id=genre_id, limit=100)
try: try:
albums = [_parse_album(alb) for alb in data['albums']['items']] albums = [_parse_album(alb) for alb in data['albums']['items']]
if albums: if albums:
...@@ -72,7 +72,7 @@ class Session(object): ...@@ -72,7 +72,7 @@ class Session(object):
def get_featured_playlists(self, genre_id=None): def get_featured_playlists(self, genre_id=None):
data = self.api.playlist_getFeatured(type='editor-picks', data = self.api.playlist_getFeatured(type='editor-picks',
genre_id=genre_id, limit=40) genre_id=genre_id, limit=100)
if data and 'playlists' in data: if data and 'playlists' in data:
return [_parse_playlist(pl) for pl in data['playlists']['items']] return [_parse_playlist(pl) for pl in data['playlists']['items']]
return [] return []
...@@ -88,7 +88,7 @@ class Session(object): ...@@ -88,7 +88,7 @@ class Session(object):
# what it does. # what it does.
def get_featured_items(self, content_type, type=''): def get_featured_items(self, content_type, type=''):
uplog("FEATURED TYPES: %s" % self.api.catalog_getFeaturedTypes()) uplog("FEATURED TYPES: %s" % self.api.catalog_getFeaturedTypes())
limit = '40' limit = '100'
data = self.api.catalog_getFeatured(limit=limit) data = self.api.catalog_getFeatured(limit=limit)
#print("Featured: %s" % json.dumps(data,indent=4), file=sys.stderr) #print("Featured: %s" % json.dumps(data,indent=4), file=sys.stderr)
if content_type == 'artists': if content_type == 'artists':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment