Skip to content

Commit

Permalink
Fix some Shivae Studios modules
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiX committed Feb 18, 2024
1 parent 3722fbe commit da60636
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
4 changes: 3 additions & 1 deletion dosagelib/plugins/old.py
Original file line number Diff line number Diff line change
Expand Up @@ -1581,6 +1581,8 @@ def getmodules(cls): # noqa: CFQ001
cls('WintersLight'),

# Removed in 3.1
cls('AbbysAgency', 'brk'),
cls('BlackRose', 'brk'),
cls('CatenaManor/CatenaCafe'),
cls('FalseStart'),
cls('Ginpu'),
Expand All @@ -1607,6 +1609,7 @@ def getmodules(cls): # noqa: CFQ001
cls('MangaDex/ImTheMaxLevelNewbie', 'legal'),
cls('MrLovenstein', 'jsh'),
cls('MyCartoons'),
cls('Shivae/BlackRose', 'brk'),
cls('StudioKhimera/Mousechevious'),
cls('TalesAndTactics'),
cls('VampireHunterBoyfriends'),
Expand Down Expand Up @@ -1704,7 +1707,6 @@ def getmodules(cls):
cls('GoComics/Widdershins', 'Widdershins'),
cls('Guardia', 'ComicFury/Guardia'),
cls('RadioactivePanda', 'Tapas/RadioactivePanda'),
cls('Shivae/BlackRose', 'BlackRose'),
cls('SmackJeeves/BlackTapestries', 'ComicFury/BlackTapestries'),
cls('SmackJeeves/ByTheBook', 'ByTheBook'),
cls('SmackJeeves/FurryExperience', 'ComicFury/FurryExperience'),
Expand Down
26 changes: 9 additions & 17 deletions dosagelib/plugins/shivaestudios.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2019-2022 Tobias Gruetzmacher
# Copyright (C) 2019-2021 Daniel Ring
# SPDX-FileCopyrightText: © 2019 Tobias Gruetzmacher
# SPDX-FileCopyrightText: © 2019 Daniel Ring
from .common import WordPressSpliced


Expand All @@ -12,22 +12,20 @@ def __init__(self, name, path, first, eol=False):
self.endOfLife = eol


class AbbysAgency(WordPressSpliced):
url = 'https://abbysagency.us/'
stripUrl = url + 'blog/comic/%s/'
firstStripUrl = stripUrl % 'a'


class AlienDice(WordPressSpliced):
url = 'https://aliendice.com/'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % '05162001'

def shouldSkipUrl(self, url, data):
"""Skip pages without images."""
return not data.xpath(self.imageSearch)

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)
return super().getPrevUrl(url, data)

def namer(self, imageUrl, pageUrl):
# Fix inconsistent filename
Expand All @@ -47,12 +45,6 @@ def isfirststrip(self, url):
return super().isfirststrip(url.rsplit('?', 1)[0])


class BlackRose(WordPressSpliced):
url = 'https://www.blackrose.monster/'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % '2004-11-01'


class TheCyantianChronicles(_CommonMulti):
baseUrl = 'https://cyantian.net/'

Expand Down Expand Up @@ -81,9 +73,9 @@ def getmodules(cls):


class Shivae(WordPressSpliced):
url = 'https://shivae.com/'
url = 'https://shivae.net/'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % '09202001'
firstStripUrl = stripUrl % '2002-02-27'


class ShivaeComics(_CommonMulti):
Expand Down

0 comments on commit da60636

Please sign in to comment.