Fix Drive (fixes #318)

This commit is contained in:
Tobias Gruetzmacher 2024-05-14 22:47:33 +02:00
parent 50a656bb6f
commit 6e138a0228
No known key found for this signature in database

View file

@ -350,14 +350,12 @@ class DrFun(_ParserScraper):
help = 'Index format: nnnnn'
class Drive(_BasicScraper):
class Drive(ParserScraper):
url = 'http://www.drivecomic.com/'
rurl = escape(url)
stripUrl = url + 'archive/%s.html'
firstStripUrl = stripUrl % '090815'
imageSearch = compile(tagre("img", "src", r'(http://cdn\.drivecomic\.com/strips/main/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'(%sarchive/\d+\.html)' % rurl) + "Previous")
help = 'Index format: yymmdd'
firstStripUrl = url + 'comic/act-1-pg-001/'
imageSearch = ('//div[@id="unspliced-comic"]//img/@data-src-img',
'//div[@id="unspliced-comic"]//picture//img')
prevSearch = '//a[d:class("previous-comic")]'
class DrMcNinja(_ParserScraper):