Fix ShivaeStudios comics

This commit is contained in:
Techwolf 2021-01-20 23:53:38 -08:00 committed by Tobias Gruetzmacher
parent 73ac10dc84
commit 555d418ee3
3 changed files with 21 additions and 11 deletions

View file

@ -19,7 +19,7 @@ class _WordPressScraper(_ParserScraper):
class _WordPressSpliced(_ParserScraper): class _WordPressSpliced(_ParserScraper):
imageSearch = '//div[@id="spliced-comic"]//img' imageSearch = '//div[@id="one-comic-option"]//img'
prevSearch = '//a[d:class("previous-comic")]' prevSearch = '//a[d:class("previous-comic")]'

View file

@ -630,8 +630,6 @@ class Removed(Scraper):
cls('ComicFury/TheUnthinkableHybrid'), cls('ComicFury/TheUnthinkableHybrid'),
cls('ComicFury/TwentyFourSeven'), cls('ComicFury/TwentyFourSeven'),
cls('ComicFury/TwentyFourSevenFans'), cls('ComicFury/TwentyFourSevenFans'),
cls('TheCyantianChronicles/CookieCaper'),
cls('TheCyantianChronicles/Pawprints'),
cls('GoComics/2CowsAndAChicken'), cls('GoComics/2CowsAndAChicken'),
cls('GoComics/AskAPortlySyndicatePerson'), cls('GoComics/AskAPortlySyndicatePerson'),
cls('GoComics/Bewley'), cls('GoComics/Bewley'),
@ -1270,6 +1268,8 @@ class Removed(Scraper):
cls('Shivae/Extras'), cls('Shivae/Extras'),
cls('SnafuComics/Titan'), cls('SnafuComics/Titan'),
cls('StuffNoOneToldMe'), cls('StuffNoOneToldMe'),
cls('TheCyantianChronicles/CookieCaper'),
cls('TheCyantianChronicles/Pawprints'),
cls('VictimsOfTheSystem'), cls('VictimsOfTheSystem'),
cls('WebDesignerCOTW'), cls('WebDesignerCOTW'),
) )

View file

@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# Copyright (C) 2019-2021 Tobias Gruetzmacher # Copyright (C) 2019-2021 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring # Copyright (C) 2019-2021 Daniel Ring
from .common import _WordPressSpliced from .common import _WordPressSpliced
@ -21,6 +21,12 @@ class AlienDice(_WordPressSpliced):
stripUrl = url + 'comic/%s/' stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % '05162001' firstStripUrl = stripUrl % '05162001'
def getPrevUrl(self, url, data):
# Fix broken navigation
if url == self.stripUrl % 'day-29-part-2-page-3-4':
return self.stripUrl % 'day-29-part-2-page-3-2'
return super(AlienDice, self).getPrevUrl(url, data)
def namer(self, imageUrl, pageUrl): def namer(self, imageUrl, pageUrl):
# Fix inconsistent filename # Fix inconsistent filename
return imageUrl.rsplit('/', 1)[-1].replace('20010831', '2001-08-31') return imageUrl.rsplit('/', 1)[-1].replace('20010831', '2001-08-31')
@ -28,12 +34,16 @@ class AlienDice(_WordPressSpliced):
class AlienDiceLegacy(_WordPressSpliced): class AlienDiceLegacy(_WordPressSpliced):
name = 'AlienDice/Legacy' name = 'AlienDice/Legacy'
url = 'https://aliendice.com/chapter/legacy/' baseUrl = 'https://aliendice.com/'
stripUrl = url + 'page/%s/' url = baseUrl + 'series/legacy/'
firstStripUrl = stripUrl % '45' stripUrl = baseUrl + 'comic/%s/'
prevSearch = '//div[d:class("nav-previous")]/a' firstStripUrl = stripUrl % 'legacy-1'
endOfLife = True endOfLife = True
def isfirststrip(self, url):
# Strip series identifier
return super(AlienDiceLegacy, self).isfirststrip(url.rsplit('?', 1)[0])
class BlackRose(_WordPressSpliced): class BlackRose(_WordPressSpliced):
url = 'https://www.blackrose.monster/' url = 'https://www.blackrose.monster/'
@ -60,9 +70,9 @@ class TheCyantianChronicles(_WithSid):
cls('CesileesDiary', 'cesilees-diary', '12062001-2', 16726, eol=True), cls('CesileesDiary', 'cesilees-diary', '12062001-2', 16726, eol=True),
cls('Darius', 'darius', '03102010', 14353, eol=True), cls('Darius', 'darius', '03102010', 14353, eol=True),
cls('DracoVulpes', 'draco-vulpes', 'draco-vulpes', 13788), cls('DracoVulpes', 'draco-vulpes', 'draco-vulpes', 13788),
cls('GenoworksSaga', 'genoworks-saga', '07012004', 13794, eol=True), cls('GenoworksSaga', 'genoworks-saga', '07012004', 13794),
cls('GralenCraggHall', 'kiet', '07152002', 13798, eol=True), cls('GralenCraggHall', 'kiet', '07152002', 13798, eol=True),
cls('Kiet', 'kiet-2', 'kiet-c01', 14351, eol=True), cls('Kiet', 'kiet-2', 'kiet-c01', 14351),
cls('NoAngel', 'no-angel', '08112001', 16644, eol=True), cls('NoAngel', 'no-angel', '08112001', 16644, eol=True),
cls('RandomRamblings', 'gallery', 'cookie-war', 13801), cls('RandomRamblings', 'gallery', 'cookie-war', 13801),
cls('SinkOrSwim', 'sink-or-swim', '05112001', 13796, eol=True), cls('SinkOrSwim', 'sink-or-swim', '05112001', 13796, eol=True),
@ -77,7 +87,7 @@ class Shivae(_WordPressSpliced):
class ShivaeComics(_WithSid): class ShivaeComics(_WithSid):
baseUrl = 'https://shivae.net/index.php/' baseUrl = 'https://shivae.net/'
def __init__(self, name, path, first, sid, eol=False): def __init__(self, name, path, first, sid, eol=False):
super().__init__('Shivae/' + name, sid) super().__init__('Shivae/' + name, sid)