Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Francois Dockes
upmpdcli
Commits
40ce27ab
Commit
40ce27ab
authored
Oct 10, 2016
by
Jean-Francois Dockes
Browse files
qobuz fix ambiguous path leading to the wrong method being (quasi-randomly) called
parent
cbff86d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mediaserver/cdplugins/qobuz/qobuz-app.py
View file @
40ce27ab
...
...
@@ -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
))
@
plugin
.
route
(
'/featured/<genre_id>/playlists'
)
# 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...)
@
plugin
.
route
(
'/featured_playlists/<genre_id>'
)
def
genre_view_playlists
(
genre_id
):
items
=
session
.
get_featured_playlists
(
genre_id
=
genre_id
)
view
(
items
,
urls_from_id
(
playlist_view
,
items
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment