--- a/src/mediaserver/cdplugins/qobuz/qobuz-app.py
+++ b/src/mediaserver/cdplugins/qobuz/qobuz-app.py
@@ -184,8 +184,35 @@
# e.g. metal and pop, same list arrives.
view(items, urls_from_id(genre_view, items))
else:
+ add_directory('New Releases', plugin.url_for(genre_view_type,
+ genre_id=genre_id,
+ type='new-releases'))
+ add_directory('Qobuz Playlists', plugin.url_for(genre_view_playlists,
+ genre_id=genre_id))
+ add_directory('Most Streamed', plugin.url_for(genre_view_type,
+ genre_id=genre_id,
+ type='most-streamed'))
+ add_directory('Most Downloaded', plugin.url_for(genre_view_type,
+ genre_id=genre_id,
+ type='best-sellers'))
+ add_directory('Editor Picks', plugin.url_for(genre_view_type,
+ genre_id=genre_id,
+ type='editor-picks'))
+ add_directory('Press Awards', plugin.url_for(genre_view_type,
+ genre_id=genre_id,
+ type='press-awards'))
items = session.get_featured_albums(genre_id)
view(items, urls_from_id(album_view, items))
+
+@plugin.route('/featured/<genre_id>/<type>')
+def genre_view_type(genre_id, type):
+ items = session.get_featured_albums(genre_id=genre_id, type=type)
+ view(items, urls_from_id(album_view, items))
+
+@plugin.route('/featured/<genre_id>/playlists')
+def genre_view_playlists(genre_id):
+ items = session.get_featured_playlists(genre_id=genre_id)
+ view(items, urls_from_id(playlist_view, items))
@plugin.route('/whats_new')
def whats_new():