Fix ButterSafe

This commit is contained in:
Tobias Gruetzmacher 2020-09-29 23:04:56 +02:00
parent f31c0c681d
commit dc41c318e9

View file

@ -309,12 +309,10 @@ class ButternutSquash(_BasicScraper):
help = 'Index format: yyyy/mm/dd/strip-name-author-name' help = 'Index format: yyyy/mm/dd/strip-name-author-name'
class ButterSafe(_BasicScraper): class ButterSafe(_ParserScraper):
url = 'http://buttersafe.com/' url = 'https://www.buttersafe.com/'
rurl = escape(url)
stripUrl = url + '%s/' stripUrl = url + '%s/'
firstStripUrl = stripUrl % '2007/04/03/breakfast-sad-turtle' firstStripUrl = stripUrl % '2007/04/03/breakfast-sad-turtle'
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)) imageSearch = '//div[@id="comic"]/img'
prevSearch = compile(tagre("a", "href", r'(%s\d+\d+/\d+/\d+/[^"]+)' % rurl, prevSearch = '//a[@rel="prev"]'
after="prev"))
help = 'Index format: yyyy/mm/dd/stripname' help = 'Index format: yyyy/mm/dd/stripname'