fix (again) the double page download problem
Note for self: //lol[1] is _not_ the same as (//lol)[1]
This commit is contained in:
parent
a698e16104
commit
fc70069943
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ class DisplayPage(BasePage):
|
||||||
url=src)
|
url=src)
|
||||||
|
|
||||||
def page_list(self):
|
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):
|
class MangafoxBrowser(BaseBrowser):
|
||||||
PAGES = { r'http://.+\.mangafox.\w+/manga/[^/]+/[^/]+/([^/]+/)?.+\.html': DisplayPage }
|
PAGES = { r'http://.+\.mangafox.\w+/manga/[^/]+/[^/]+/([^/]+/)?.+\.html': DisplayPage }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue