2020-04-18 11:45:44 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
2019-07-13 05:35:14 +00:00
|
|
|
# Copyright (C) 2019-2020 Tobias Gruetzmacher
|
2020-01-13 06:34:05 +00:00
|
|
|
# Copyright (C) 2019-2020 Daniel Ring
|
2019-07-13 05:35:14 +00:00
|
|
|
from ..scraper import _ParserScraper
|
|
|
|
|
|
|
|
|
|
|
|
class RHJunior(_ParserScraper):
|
2020-10-11 18:15:27 +00:00
|
|
|
stripUrl = 'https://www.rhjunior.com/%s/'
|
2019-07-13 05:35:14 +00:00
|
|
|
imageSearch = '//div[contains(@class, "entry-content")]//img'
|
|
|
|
multipleImagesPerStrip = True
|
|
|
|
|
|
|
|
def __init__(self, name, sub, prev, first, last=None):
|
2020-10-11 18:15:27 +00:00
|
|
|
super().__init__('RHJunior/' + name)
|
2019-07-13 05:35:14 +00:00
|
|
|
self.prevSearch = ('//a[@rel="prev"]', '//a[@title="' + prev + '"]')
|
|
|
|
self.url = self.stripUrl % ('comics/' + sub)
|
|
|
|
self.firstStripUrl = self.stripUrl % (sub + '-' + first)
|
|
|
|
|
|
|
|
if last:
|
|
|
|
self.url = self.stripUrl % (sub + '-' + last)
|
|
|
|
self.endOfLife = True
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def getmodules(cls):
|
|
|
|
return (
|
2020-10-11 18:15:27 +00:00
|
|
|
cls('GoblinHollow', 'goblin-hollow',
|
|
|
|
'', '0001', last='7'),
|
|
|
|
cls('NipAndTuck', 'nip-and-tuck',
|
|
|
|
'Nip and Tuck', '0000'),
|
|
|
|
cls('QuentynQuinnSpaceRanger', 'quentyn-quinn-space-ranger',
|
|
|
|
'Quentyn Quinn, Space Ranger', '0001'),
|
|
|
|
cls('TalesOfTheQuestor', 'tales-of-the-questor',
|
|
|
|
'Tales of the Questor', 'cover'),
|
|
|
|
cls('TheJournalOfEnniasLongscript', 'the-journal-of-ennias-longscript',
|
|
|
|
'', '0001', last='0111'),
|
|
|
|
cls('TheProbabilityBomb', 'the-probability-bomb',
|
|
|
|
'the Probability Bomb', 'kickstarter'),
|
2019-07-13 05:35:14 +00:00
|
|
|
)
|