Add RayFox

This commit is contained in:
Techwolf 2020-05-20 23:08:43 -07:00
parent 4726497c06
commit de3b396d11

View file

@ -9,13 +9,36 @@ from urllib.parse import urljoin
from ..helpers import bounceStarter from ..helpers import bounceStarter
from ..scraper import _BasicScraper, _ParserScraper from ..scraper import _BasicScraper, _ParserScraper
from ..util import tagre from ..util import tagre
from .common import _WordPressScraper, _WPWebcomic from .common import _WordPressScraper, _WPNavi, _WPWebcomic
class RalfTheDestroyer(_WordPressScraper): class RalfTheDestroyer(_WordPressScraper):
url = 'http://ralfthedestroyer.com/' url = 'http://ralfthedestroyer.com/'
class RayFox(_WPNavi):
url = 'https://www.rayfoxthecomic.com/'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % 'not-a-super-hero/it-begins'
def namer(self, imageUrl, pageUrl):
filename = imageUrl.rsplit('/', 1)[-1].split('.', 1)[0]
ext = imageUrl.rsplit('.', 1)[-1]
if filename == 'j':
filename = 'RF_E3_P52'
elif filename == '46' or filename == '55' or filename == '61':
filename = 'RF_E3_P' + filename
elif 'chapter-3-cover' in filename:
filename = 'RF_E3_Cover'
elif 'Cover2' in filename:
filename = 'RF_E1_' + filename
elif 'Volume-1-Cover' in filename:
filename = filename.replace('Ray-Fox-Volume-1-', 'RF_E1_')
elif filename[0] == '0':
filename = 'RF_E1_P' + filename
return filename + '.' + ext
class RaynaOnTheRiver(_WordPressScraper): class RaynaOnTheRiver(_WordPressScraper):
url = 'http://www.catomix.com/rayna/' url = 'http://www.catomix.com/rayna/'
firstStripUrl = url + 'archives/comic/teaser-poster' firstStripUrl = url + 'archives/comic/teaser-poster'