Artist charts have the artist name in the 'name' field. There is no 'artist' field.
This commit is contained in:
parent
06f6cf627d
commit
892acd6df9
|
@ -1169,8 +1169,15 @@ class _Chartable(object):
|
|||
|
||||
seq = []
|
||||
for node in doc.getElementsByTagName(chart_kind.lower()):
|
||||
if chart_kind == "artist":
|
||||
item = chart_type(
|
||||
_extract(node, "artist"), _extract(node, "name"), self.network)
|
||||
_extract(node, "name"),
|
||||
self.network)
|
||||
else:
|
||||
item = chart_type(
|
||||
_extract(node, "artist"),
|
||||
_extract(node, "name"),
|
||||
self.network)
|
||||
weight = _number(_extract(node, "playcount"))
|
||||
seq.append(TopItem(item, weight))
|
||||
|
||||
|
|
Loading…
Reference in a new issue