Fix Mangafox crash on Comments page

This commit is contained in:
Noe Rubinstein 2012-02-29 00:20:29 +01:00 committed by Romain Bignon
commit c7f5b68c85

View file

@ -26,7 +26,7 @@ class MangafoxBackend(GenericComicReaderBackend):
DESCRIPTION = 'Manga Fox manga reading website'
BROWSER_PARAMS = dict(
img_src_xpath="//img[@id='image']/attribute::src",
page_list_xpath="(//select[@onchange='change_page(this)'])[1]/option/@value",
page_list_xpath="(//select[@onchange='change_page(this)'])[1]/option[text()!='Comments']/@value",
page_to_location="%s.html")
ID_REGEXP = r'[^/]+/[^/]+(?:/[^/]+)?'
URL_REGEXP = r'.+mangafox.com/manga/(%s).+' % ID_REGEXP