Don't download the same page several times

This commit is contained in:
Noé Rubinstein 2011-08-23 17:44:32 +02:00 committed by Romain Bignon
commit 6caeb19312

View file

@ -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 }