Skip to content

Commit

Permalink
Fix Drive (fixes #318)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed May 14, 2024
1 parent 50a656b commit 6e138a0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions dosagelib/plugins/d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6e138a0

Please sign in to comment.