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
7dd3a898
Commit
7dd3a898
authored
Nov 14, 2016
by
Jean-Francois Dockes
Browse files
Fix issue created by commit 57c492
parent
57c49293
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mediaserver/cdplugins/qobuz/session.py
View file @
7dd3a898
...
...
@@ -172,21 +172,20 @@ def _parse_playlist(json_obj, artist=None, artists=None):
return
Playlist
(
**
kwargs
)
def
_parse_track
(
json_obj
,
albumarg
=
None
):
album
=
None
if
'album'
in
json_obj
:
album
=
_parse_album
(
json_obj
[
'album'
],
artist
)
else
:
album
=
albumarg
artist
=
Artist
()
if
'performer'
in
json_obj
:
artist
=
_parse_artist
(
json_obj
[
'performer'
])
elif
'artist'
in
json_obj
:
artist
=
_parse_artist
(
json_obj
[
'artist'
])
elif
album
:
if
album
.
artist
:
artist
=
album
.
artist
elif
albumarg
and
albumarg
.
artist
:
artist
=
albumarg
.
artist
album
=
None
if
'album'
in
json_obj
:
album
=
_parse_album
(
json_obj
[
'album'
],
artist
)
else
:
a
rtist
=
Artist
()
a
lbum
=
albumarg
available
=
json_obj
[
'streamable'
]
if
'streamable'
in
json_obj
else
false
...
...
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