2016-05-07 01:20:01 +00:00
|
|
|
# -*- 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
|
2016-05-07 01:20:01 +00:00
|
|
|
# Copyright (C) 2015-2016 Tobias Gruetzmacher
|
2012-12-07 23:45:18 +00:00
|
|
|
|
2016-05-07 01:20:01 +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'
|
|
|
|
|
2016-05-20 23:18:42 +00:00
|
|
|
def __init__(self, name):
|
|
|
|
super(_WebcomicEu, self).__init__('WebcomicEu/' + name)
|
2016-05-07 01:20:01 +00:00
|
|
|
|
|
|
|
@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'
|