From f911168a57046ceecb80de9f84e7bf30fae4af45 Mon Sep 17 00:00:00 2001 From: Paddez Date: Mon, 7 Nov 2016 13:20:38 +0000 Subject: [PATCH] Modify to extract the URL from XML response --- pylast/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index e6c4e85..c683f12 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -4163,8 +4163,9 @@ def _extract_top_albums(doc, network): name = _extract(node, "name") artist = _extract(node, "name", 1) playcount = _extract(node, "playcount") + cover_url = _extract_all(node, "image")[COVER_EXTRA_LARGE] - seq.append(TopItem(Album(artist, name, network), playcount)) + seq.append(TopItem(Album(artist, name, network, url=cover_url), playcount)) return seq