Use ComicControlScraper for MagickChicks (fixes #222)

This commit is contained in:
Tobias Gruetzmacher 2022-05-27 18:47:58 +02:00
parent 6415572f3d
commit 29d5f755f0

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam # Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2021 Tobias Gruetzmacher # Copyright (C) 2015-2022 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring # Copyright (C) 2019-2020 Daniel Ring
import json import json
from re import compile, escape, IGNORECASE from re import compile, escape, IGNORECASE
@ -36,14 +36,12 @@ class Magellan(_ParserScraper):
prevSearch = '.nav-previous > a' prevSearch = '.nav-previous > a'
class MagickChicks(_BasicScraper): class MagickChicks(_ComicControlScraper):
url = 'http://www.magickchicks.com/' url = 'https://pixietrixcomix.com/magick-chicks/'
stripUrl = url + 'strips-mc/%s' stripUrl = url + '%s'
firstStripUrl = stripUrl % 'tis_but_a_trifle' firstStripUrl = stripUrl % 'tis-but-a-trifle-2'
imageSearch = compile(tagre("img", "src", r'([^"]*/comics/[^"]+)'))
prevSearch = compile(tagre("a", "href", r'([^"]*/strips-mc/[^"]+)',
before="cn[id]prevt"))
help = 'Index format: name' help = 'Index format: name'
endOfLife = True
class ManlyGuysDoingManlyThings(_ParserScraper): class ManlyGuysDoingManlyThings(_ParserScraper):