From 014df0f0bbec9d10aa423a983f81e8f7c589dd51 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 27 May 2022 18:49:01 +0200 Subject: [PATCH] Use ComicControlScraper for SandraOnTheRocks (fixes #221) --- dosagelib/plugins/s.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index a543977dd..782a5edc0 100644 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -1,7 +1,7 @@ # SPDX-License-Identifier: MIT # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam -# Copyright (C) 2015-2021 Tobias Gruetzmacher +# Copyright (C) 2015-2022 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from re import compile, escape, IGNORECASE, sub from os.path import splitext @@ -58,12 +58,11 @@ class SamAndFuzzy(_ParserScraper): help = 'Index format: n (unpadded)' -class SandraOnTheRocks(_BasicScraper): - url = 'http://www.sandraontherocks.com/' - stripUrl = url + 'strips-sotr/%s' - firstStripUrl = stripUrl % 'start_by_running' - imageSearch = compile(tagre("img", "src", r'([^"]*/comics/[^"]+)')) - prevSearch = compile(tagre("a", "href", r'([^"]*/strips-sotr/[^"]+)', before="cn[id]prev")) +class SandraOnTheRocks(_ComicControlScraper): + url = 'https://pixietrixcomix.com/sandra-on-the-rocks/' + stripUrl = url + '%s' + firstStripUrl = stripUrl % 'start-by-running' + endOfLife = True help = 'Index format: name'