From ce9d882856be8f6caca14ab7e5b9f13d6c31940b Mon Sep 17 00:00:00 2001 From: Krateng Date: Sun, 18 Oct 2020 19:08:47 +0200 Subject: [PATCH] Listenbrainz artwork urls are now converted to https, fixes GH-41 --- maloja/thirdparty/musicbrainz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maloja/thirdparty/musicbrainz.py b/maloja/thirdparty/musicbrainz.py index 7a13bbd..17ea3fb 100644 --- a/maloja/thirdparty/musicbrainz.py +++ b/maloja/thirdparty/musicbrainz.py @@ -55,7 +55,9 @@ class MusicBrainz(MetadataInterface): ) responsedata = response.read() data = json.loads(responsedata) - return self.metadata_parse_response_track(data) + imgurl = self.metadata_parse_response_track(data) + if imgurl is not None: imgurl = self.postprocess_url(imgurl) + return imgurl except: return None