Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
funkwhale
mopidy
Commits
189bf9a9
Verified
Commit
189bf9a9
authored
Sep 23, 2020
by
David Sn
Browse files
Fix library not loading due to a bug with covers
parent
7437b176
Changes
1
Hide whitespace changes
Inline
Side-by-side
mopidy_funkwhale/library.py
View file @
189bf9a9
...
...
@@ -333,7 +333,7 @@ def convert_to_artist(payload, uri_prefix="funkwhale:artists"):
@
cast_to_ref
def
convert_to_album
(
payload
,
uri_prefix
=
"funkwhale:albums"
):
artist
=
convert_to_artist
(
payload
[
"artist"
])
image
=
payload
[
"cover"
][
"original"
]
if
payload
[
"cover"
]
else
None
image
=
payload
[
"cover"
][
"
urls"
][
"
original"
]
if
payload
[
"cover"
]
else
None
return
models
.
Album
(
uri
=
uri_prefix
+
":%s"
%
payload
[
"id"
],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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