Fix GunnerkriggCourt

This commit is contained in:
Techwolf 2019-06-11 21:26:42 -07:00 committed by Tobias Gruetzmacher
parent 835f484673
commit f79d3c9309

View file

@ -183,13 +183,12 @@ class GUComics(_BasicScraper):
help = 'Index format: yyyymmdd' help = 'Index format: yyyymmdd'
class GunnerkriggCourt(_BasicScraper): class GunnerkriggCourt(_ParserScraper):
url = 'https://www.gunnerkrigg.com/' url = 'http://www.gunnerkrigg.com/'
stripUrl = url + '?p=%s' stripUrl = url + '?p=%s'
imageSearch = compile(tagre("img", "src", r'(/comics/[^"]+)')) firstStripUrl = stripUrl % '1'
prevSearch = compile( imageSearch = '//img[@class="comic_image"]'
tagre("a", "href", r'(\?p=\d+)') + prevSearch = '//a[./img[contains(@src, "prev")]]'
tagre("img", "src", r'/images/prev_a\.jpg'))
help = 'Index format: number' help = 'Index format: number'