From 14f05fbf74f58563552952cb65dede49dcddc3bc Mon Sep 17 00:00:00 2001 From: hugovk Date: Wed, 2 Sep 2015 20:26:35 +0300 Subject: [PATCH] Fix get_recent_tracks (and more) --- pylast/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index f49aab0..16c1207 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -4030,7 +4030,7 @@ def _collect_nodes(limit, sender, method_name, cacheable, params=None): params["page"] = str(page) doc = sender._request(method_name, cacheable, params) - main = doc.documentElement.childNodes[1] + main = doc.documentElement.childNodes[0] if main.hasAttribute("totalPages"): total_pages = _number(main.getAttribute("totalPages"))