Fix QuestionableContent

This commit is contained in:
Techwolf 2019-07-12 20:44:27 -07:00 committed by Tobias Gruetzmacher
parent 5e79ff9d84
commit 047f023e50

View file

@ -26,12 +26,12 @@ class QuentynQuinnSpaceRanger(_ParserScraper):
prevSearch = ('//a[@rel="prev"]', '//a[@title="Quentyn Quinn, Space Ranger"]') prevSearch = ('//a[@rel="prev"]', '//a[@title="Quentyn Quinn, Space Ranger"]')
class QuestionableContent(_BasicScraper): class QuestionableContent(_ParserScraper):
url = 'http://www.questionablecontent.net/' url = 'http://www.questionablecontent.net/'
stripUrl = url + 'view.php?comic=%s' stripUrl = url + 'view.php?comic=%s'
firstStripUrl = stripUrl % '1' firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r'([^"]+/comics/[^"]+)')) imageSearch = '//img[contains(@src, "comics/")]'
prevSearch = compile(tagre("a", "href", r'(view\.php\?comic=\d+)') + 'Previous') prevSearch = '//a[text()="Previous"]'
help = 'Index format: n (unpadded)' help = 'Index format: n (unpadded)'