Artist charts have the artist name in the 'name' field. There is no 'artist' field.
@@ -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))
