From 4e03ec84c6656767da484242d8f9ccf24dbedc30 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 26 Aug 2023 16:42:38 +0200 Subject: [PATCH] Switch TheRockCocks to ComicControlScraper (fixes #278) --- dosagelib/plugins/t.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dosagelib/plugins/t.py b/dosagelib/plugins/t.py index 429a777c1..ebe864694 100644 --- a/dosagelib/plugins/t.py +++ b/dosagelib/plugins/t.py @@ -206,13 +206,9 @@ class TheOrderOfTheStick(_ParserScraper): return page_url.rsplit('/', 1)[-1][:-5] -class TheRockCocks(_BasicScraper): - url = 'http://rockcocks.slipshine.net/' - rurl = escape(url) - 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"')) +class TheRockCocks(ComicControlScraper): + url = 'https://rockcocks.slipshine.net/' + firstStripUrl = url + 'the-rock-cocks/page-1' adult = True