Fix Shivae and add side comics

This commit is contained in:
Techwolf 2019-07-09 21:51:47 -07:00 committed by Tobias Gruetzmacher
parent 963db7f448
commit 24573c4793
2 changed files with 41 additions and 5 deletions

View file

@ -50,3 +50,44 @@ class TheCyantianChronicles(_WordPressScraper):
cls('RandomRamblings', 'random-ramblings', 'darrik'), cls('RandomRamblings', 'random-ramblings', 'darrik'),
cls('SinkOrSwim', 'sos', 'sink-or-swim', last='ricochete-and-seraphim') cls('SinkOrSwim', 'sos', 'sink-or-swim', last='ricochete-and-seraphim')
) )
class Shivae(_WordPressScraper):
url = 'http://shivae.com/'
stripUrl = url + 'gnip/%s/'
firstStripUrl = stripUrl % 'cler/09202001'
class ShivaeComics(_WordPressScraper):
baseUrl = 'http://shivae.net/'
def __init__(self, name, story, first, last=None, nav=None):
super(ShivaeComics, self).__init__('Shivae/' + name)
self.url = self.baseUrl + story + '/'
self.stripUrl = self.url + 'comic/%s/'
self.firstStripUrl = self.stripUrl % first
self.nav = nav
if last:
self.url = self.stripUrl % last
self.endOfLife = True
def getPrevUrl(self, url, data):
# Missing/broken navigation links
url = url.rstrip('/').rsplit('/', 1)[-1]
if self.nav and url in self.nav:
return self.stripUrl % self.nav[url]
return super(ShivaeComics, self).getPrevUrl(url, data)
@classmethod
def getmodules(cls):
return (
cls('BlackRose', 'blackrose', '11012004'),
cls('CafeAnime', 'cafeanime', '08172004', last='09192009'),
cls('Extras', 'extras', '01012012', nav={'12302012': '08152013'}),
cls('Pure', 'pure', '04082002', last='chapter-6-page-1'),
cls('SerinFairyHunter', 'serin', 'character-serin'),
cls('SivineBlades', 'sivine', '06302002', last='10242008')
)

View file

@ -215,11 +215,6 @@ class ShipInABottle(_WPNavi):
help = 'Index format: number' help = 'Index format: number'
class Shivae(_WordPressScraper):
url = 'http://shivae.com/'
firstStripUrl = url + 'gnip/ck-chapter-01/caidenkoel-title-01/'
class Shortpacked(_ParserScraper): class Shortpacked(_ParserScraper):
url = 'http://www.shortpacked.com/index.php' url = 'http://www.shortpacked.com/index.php'
stripUrl = url + '?id=%s' stripUrl = url + '?id=%s'