dosage/dosagelib/plugins/petitesymphony.py
2017-05-22 01:17:05 +02:00

40 lines
1.1 KiB
Python

# -*- coding: utf-8 -*-
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2017 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function
from .common import _WordPressScraper, _WPNavi
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):
return (
cls("knuckleup"),
cls("sangria"),
)
class ComicsBreak(_WordPressScraper):
def __init__(self, name):
super(ComicsBreak, self).__init__('ComicsBreak/' + name)
self.url = 'http://%s.comicsbreak.com/' % name.lower()
@classmethod
def getmodules(cls):
return (
cls("Djandora"),
cls("Generation17"),
)