fix bug when there is no vol number
This commit is contained in:
parent
6caeb19312
commit
519d7bd38c
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ class DisplayPage(BasePage):
|
||||||
return self.document.xpath("//select[@onchange='change_page(this)'][1]/option/attribute::value")
|
return self.document.xpath("//select[@onchange='change_page(this)'][1]/option/attribute::value")
|
||||||
|
|
||||||
class MangafoxBrowser(BaseBrowser):
|
class MangafoxBrowser(BaseBrowser):
|
||||||
PAGES = { r'http://.+\.mangafox.\w+/manga/[^/]+/[^/]+/[^/]+/.+\.html': DisplayPage }
|
PAGES = { r'http://.+\.mangafox.\w+/manga/[^/]+/[^/]+/([^/]+/)?.+\.html': DisplayPage }
|
||||||
|
|
||||||
def iter_gallery_images(self, gallery):
|
def iter_gallery_images(self, gallery):
|
||||||
self.location(gallery.url)
|
self.location(gallery.url)
|
||||||
|
|
@ -73,7 +73,7 @@ class MangafoxBackend(BaseBackend, ICapGallery):
|
||||||
return self.browser.iter_gallery_images(gallery)
|
return self.browser.iter_gallery_images(gallery)
|
||||||
|
|
||||||
def get_gallery(self, _id):
|
def get_gallery(self, _id):
|
||||||
match = re.match(r'(?:(?:.+mangafox.com/manga)?/)?([^/]+/[^/]+/[^/]+)', _id)
|
match = re.match(r'(?:(?:.+mangafox.com/manga)?/)?([^/]+/[^/]+(?:/[^/]+)?)', _id)
|
||||||
if match is None:
|
if match is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue