fix (again) the double page download problem

Note for self: //lol[1] is _not_ the same as (//lol)[1]
This commit is contained in:
Noé Rubinstein 2011-08-26 18:34:59 +02:00 committed by Romain Bignon
commit fc70069943

View file

@ -36,7 +36,9 @@ class DisplayPage(BasePage):
url=src)
def page_list(self):
return self.document.xpath("//select[@onchange='change_page(this)'][1]/option/attribute::value")
l = self.document.xpath("//select[@onchange='change_page(this)']")[0]
l = l.xpath("./option/@value")
return l
class MangafoxBrowser(BaseBrowser):
PAGES = { r'http://.+\.mangafox.\w+/manga/[^/]+/[^/]+/([^/]+/)?.+\.html': DisplayPage }