Modify to extract the URL from XML response
This commit is contained in:
parent
88619b30d4
commit
f911168a57
|
@ -4163,8 +4163,9 @@ def _extract_top_albums(doc, network):
|
||||||
name = _extract(node, "name")
|
name = _extract(node, "name")
|
||||||
artist = _extract(node, "name", 1)
|
artist = _extract(node, "name", 1)
|
||||||
playcount = _extract(node, "playcount")
|
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
|
return seq
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue