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
e4234d5b
Commit
e4234d5b
authored
Oct 10, 2016
by
Jean-Francois Dockes
Browse files
bumped qobuz list sizes limit to 100
parent
4107b59f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mediaserver/cdplugins/qobuz/session.py
View file @
e4234d5b
...
...
@@ -61,7 +61,7 @@ class Session(object):
def
get_featured_albums
(
self
,
genre_id
=
None
,
type
=
'new-releases'
):
#uplog("get_featured_albums, genre_id %s type %s " % (genre_id, type))
data
=
self
.
api
.
album_getFeatured
(
type
=
type
,
genre_id
=
genre_id
,
limit
=
4
0
)
genre_id
=
genre_id
,
limit
=
10
0
)
try
:
albums
=
[
_parse_album
(
alb
)
for
alb
in
data
[
'albums'
][
'items'
]]
if
albums
:
...
...
@@ -72,7 +72,7 @@ class Session(object):
def
get_featured_playlists
(
self
,
genre_id
=
None
):
data
=
self
.
api
.
playlist_getFeatured
(
type
=
'editor-picks'
,
genre_id
=
genre_id
,
limit
=
4
0
)
genre_id
=
genre_id
,
limit
=
10
0
)
if
data
and
'playlists'
in
data
:
return
[
_parse_playlist
(
pl
)
for
pl
in
data
[
'playlists'
][
'items'
]]
return
[]
...
...
@@ -88,7 +88,7 @@ class Session(object):
# what it does.
def
get_featured_items
(
self
,
content_type
,
type
=
''
):
uplog
(
"FEATURED TYPES: %s"
%
self
.
api
.
catalog_getFeaturedTypes
())
limit
=
'
4
0'
limit
=
'
10
0'
data
=
self
.
api
.
catalog_getFeatured
(
limit
=
limit
)
#print("Featured: %s" % json.dumps(data,indent=4), file=sys.stderr)
if
content_type
==
'artists'
:
...
...
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