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

qobuz fix ambiguous path leading to the wrong method being (quasi-randomly) called

parent cbff86d0
......@@ -209,7 +209,11 @@ 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))
# This used to be /featured/<genre_id>/playlist, but this path can be
# matched by the one for genre_view_type, and the wrong function may
# be called, depending on the rules ordering (meaning we had the
# problem on an rpi, but not ubuntu...)
def genre_view_playlists(genre_id):
items = session.get_featured_playlists(genre_id=genre_id)
view(items, urls_from_id(playlist_view, items))
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