Modify to extract the URL from XML response
This commit is contained in:
parent
88619b30d4
commit
f911168a57
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue