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