From 6caeb19312d8cdcfd063e9c3326837bc0516f1b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Rubinstein?= Date: Tue, 23 Aug 2011 17:44:32 +0200 Subject: [PATCH] Don't download the same page several times --- weboob/backends/mangafox/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/backends/mangafox/backend.py b/weboob/backends/mangafox/backend.py index 577af630..8e5b82cc 100644 --- a/weboob/backends/mangafox/backend.py +++ b/weboob/backends/mangafox/backend.py @@ -41,7 +41,7 @@ class DisplayPage(BasePage): url=src) def page_list(self): - return self.document.xpath("//select[@onchange='change_page(this)']/option/attribute::value") + return self.document.xpath("//select[@onchange='change_page(this)'][1]/option/attribute::value") class MangafoxBrowser(BaseBrowser): PAGES = { r'http://.+\.mangafox.\w+/manga/[^/]+/[^/]+/[^/]+/.+\.html': DisplayPage }