dosage/dosagelib/plugins/webcomiceu.py

44 lines
1,002 B
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
# Copyright (C) 2015-2016 Tobias Gruetzmacher
2012-12-07 23:45:18 +00:00
from __future__ import absolute_import, division, print_function
from ..scraper import _ParserScraper
class _WebcomicEu(_ParserScraper):
imageSearch = '//img[@id="comicimg"]'
prevSearch = '//a[img[contains(@src, "navi-zurueck")]]'
help = 'Index format: number'
def __init__(self, name):
super(_WebcomicEu, self).__init__('WebcomicEu/' + name)
@property
def url(self):
return 'http://%s.webcomic.eu/' % self.sub
@property
def stripUrl(self):
return self.url + '?id=%s'
@property
def firstStripUrl(self):
return self.stripUrl % '1'
class TheBessEffect(_WebcomicEu):
lang = 'de'
sub = 'thebesseffect'
class TheBessEffectEnglish(_WebcomicEu):
sub = 'tbe-english'
class Talandor(_WebcomicEu):
lang = 'de'
sub = 'talandor'