Switch TheRockCocks to ComicControlScraper (fixes #278)

This commit is contained in:
Tobias Gruetzmacher 2023-08-26 16:42:38 +02:00
parent 89db5f31a6
commit 4e03ec84c6
No known key found for this signature in database

View file

@ -206,13 +206,9 @@ class TheOrderOfTheStick(_ParserScraper):
return page_url.rsplit('/', 1)[-1][:-5] return page_url.rsplit('/', 1)[-1][:-5]
class TheRockCocks(_BasicScraper): class TheRockCocks(ComicControlScraper):
url = 'http://rockcocks.slipshine.net/' url = 'https://rockcocks.slipshine.net/'
rurl = escape(url) firstStripUrl = url + 'the-rock-cocks/page-1'
stripUrl = url + 'comic/%s'
firstStripUrl = stripUrl % "page-1-nsfw-track-1-start"
imageSearch = compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl, after='id="cc-comic"'))
prevSearch = compile(tagre("a", "href", r'(%scomic/[^"]+)' % rurl, after='rel="prev"'))
adult = True adult = True