dosage/dosagelib/plugins/petitesymphony.py

43 lines
1.3 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2016-10-28 22:21:41 +00:00
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
2014-01-05 15:50:57 +00:00
# Copyright (C) 2012-2014 Bastian Kleineidam
2020-01-09 02:05:05 +00:00
# Copyright (C) 2015-2020 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function
2012-12-12 16:41:29 +00:00
2017-05-21 23:17:05 +00:00
from .common import _WordPressScraper, _WPNavi
2017-05-21 23:17:05 +00:00
class PetiteSymphony(_WPNavi):
multipleImagesPerStrip = True
help = 'Index format: named number'
def __init__(self, name):
super(PetiteSymphony, self).__init__('PetiteSymphony/' +
name.capitalize())
self.url = 'http://%s.petitesymphony.com/' % name
self.stripUrl = self.url + 'comic/%s'
@classmethod
def getmodules(cls):
2016-10-31 06:16:10 +00:00
return (
cls("knuckleup"),
cls("sangria"),
2016-10-31 06:16:10 +00:00
)
class ComicsBreak(_WordPressScraper):
2020-01-09 02:05:05 +00:00
def __init__(self, name, archive=None):
super(ComicsBreak, self).__init__('ComicsBreak/' + name)
self.url = 'http://%s.comicsbreak.com/' % name.lower()
2020-01-09 02:05:05 +00:00
if archive:
self.url = 'https://web.archive.org/web/{}/{}'.format(
archive, self.url)
2012-12-12 16:41:29 +00:00
@classmethod
def getmodules(cls):
2016-10-31 06:16:10 +00:00
return (
2020-01-09 02:05:05 +00:00
cls('Djandora', archive='20170923062433'),
cls("Generation17"),
2016-10-31 06:16:10 +00:00
)