a/src/mediaserver/cdplugins/qobuz/session.py b/src/mediaserver/cdplugins/qobuz/session.py
...
...
59
        return []
59
        return []
60
60
61
    def get_featured_albums(self, genre_id=None, type='new-releases'):
61
    def get_featured_albums(self, genre_id=None, type='new-releases'):
62
        #uplog("get_featured_albums, genre_id %s type %s " % (genre_id, type))
62
        #uplog("get_featured_albums, genre_id %s type %s " % (genre_id, type))
63
        data = self.api.album_getFeatured(type=type,
63
        data = self.api.album_getFeatured(type=type,
64
                                          genre_id=genre_id, limit=40)
64
                                          genre_id=genre_id, limit=100)
65
        try:
65
        try:
66
            albums = [_parse_album(alb) for alb in data['albums']['items']]
66
            albums = [_parse_album(alb) for alb in data['albums']['items']]
67
            if albums:
67
            if albums:
68
                return [alb for alb in albums if alb.available]
68
                return [alb for alb in albums if alb.available]
69
        except:
69
        except:
70
            pass
70
            pass
71
        return []
71
        return []
72
72
73
    def get_featured_playlists(self, genre_id=None):
73
    def get_featured_playlists(self, genre_id=None):
74
        data = self.api.playlist_getFeatured(type='editor-picks',
74
        data = self.api.playlist_getFeatured(type='editor-picks',
75
                                             genre_id=genre_id, limit=40)
75
                                             genre_id=genre_id, limit=100)
76
        if data and 'playlists' in data:
76
        if data and 'playlists' in data:
77
            return [_parse_playlist(pl) for pl in data['playlists']['items']]
77
            return [_parse_playlist(pl) for pl in data['playlists']['items']]
78
        return []
78
        return []
79
79
80
    # content_type: albums/artists/playlists.  type : The type of
80
    # content_type: albums/artists/playlists.  type : The type of
...
...
86
    # catalog_getFeatured (setting type triggers an
86
    # catalog_getFeatured (setting type triggers an
87
    # error). album_getFeatured() accepts type, but it's not clear
87
    # error). album_getFeatured() accepts type, but it's not clear
88
    # what it does.
88
    # what it does.
89
    def get_featured_items(self, content_type, type=''):
89
    def get_featured_items(self, content_type, type=''):
90
        uplog("FEATURED TYPES: %s" % self.api.catalog_getFeaturedTypes())
90
        uplog("FEATURED TYPES: %s" % self.api.catalog_getFeaturedTypes())
91
        limit = '40'
91
        limit = '100'
92
        data = self.api.catalog_getFeatured(limit=limit)
92
        data = self.api.catalog_getFeatured(limit=limit)
93
        #print("Featured: %s" % json.dumps(data,indent=4), file=sys.stderr)
93
        #print("Featured: %s" % json.dumps(data,indent=4), file=sys.stderr)
94
        if content_type == 'artists':
94
        if content_type == 'artists':
95
            if 'artists' in data:
95
            if 'artists' in data:
96
                return [_parse_artist(i) for i in data['artists']['items']]
96
                return [_parse_artist(i) for i in data['artists']['items']]