Verified Commit 189bf9a9 authored by David Sn's avatar David Sn
Browse files

Fix library not loading due to a bug with covers

parent 7437b176
......@@ -333,7 +333,7 @@ def convert_to_artist(payload, uri_prefix="funkwhale:artists"):
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"],
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