|
a/src/mediaserver/cdplugins/qobuz/qobuz-app.py |
|
b/src/mediaserver/cdplugins/qobuz/qobuz-app.py |
|
... |
|
... |
207 |
@plugin.route('/featured/<genre_id>/<type>')
|
207 |
@plugin.route('/featured/<genre_id>/<type>')
|
208 |
def genre_view_type(genre_id, type):
|
208 |
def genre_view_type(genre_id, type):
|
209 |
items = session.get_featured_albums(genre_id=genre_id, type=type)
|
209 |
items = session.get_featured_albums(genre_id=genre_id, type=type)
|
210 |
view(items, urls_from_id(album_view, items))
|
210 |
view(items, urls_from_id(album_view, items))
|
211 |
|
211 |
|
|
|
212 |
# This used to be /featured/<genre_id>/playlist, but this path can be
|
|
|
213 |
# matched by the one for genre_view_type, and the wrong function may
|
|
|
214 |
# be called, depending on the rules ordering (meaning we had the
|
|
|
215 |
# problem on an rpi, but not ubuntu...)
|
212 |
@plugin.route('/featured/<genre_id>/playlists')
|
216 |
@plugin.route('/featured_playlists/<genre_id>')
|
213 |
def genre_view_playlists(genre_id):
|
217 |
def genre_view_playlists(genre_id):
|
214 |
items = session.get_featured_playlists(genre_id=genre_id)
|
218 |
items = session.get_featured_playlists(genre_id=genre_id)
|
215 |
view(items, urls_from_id(playlist_view, items))
|
219 |
view(items, urls_from_id(playlist_view, items))
|
216 |
|
220 |
|
217 |
@plugin.route('/whats_new')
|
221 |
@plugin.route('/whats_new')
|