Fix get_recent_tracks (and more)
This commit is contained in:
parent
2faaf13bfa
commit
14f05fbf74
|
@ -4030,7 +4030,7 @@ def _collect_nodes(limit, sender, method_name, cacheable, params=None):
|
||||||
params["page"] = str(page)
|
params["page"] = str(page)
|
||||||
doc = sender._request(method_name, cacheable, params)
|
doc = sender._request(method_name, cacheable, params)
|
||||||
|
|
||||||
main = doc.documentElement.childNodes[1]
|
main = doc.documentElement.childNodes[0]
|
||||||
|
|
||||||
if main.hasAttribute("totalPages"):
|
if main.hasAttribute("totalPages"):
|
||||||
total_pages = _number(main.getAttribute("totalPages"))
|
total_pages = _number(main.getAttribute("totalPages"))
|
||||||
|
|
Loading…
Reference in a new issue