Added Unsound.
This commit is contained in:
parent
725824f067
commit
ba6e0c09a4
2 changed files with 25 additions and 7 deletions
|
@ -2,18 +2,16 @@ Dosage 2.2 (released xx.xx.2013)
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
- comic: Added ARedTailsDream, Carciphona, Curtailed, GirlGenius,
|
- comic: Added ARedTailsDream, Carciphona, Curtailed, GirlGenius,
|
||||||
Lackadaisy, SabrinaOnline, TheDreamlandChronicles, TwoGuysAndGuy.
|
Lackadaisy, SabrinaOnline, TheDreamlandChronicles, TwoGuysAndGuy
|
||||||
Patch by Dirk Reiners
|
and Unsound. Patch by Dirk Reiners.
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
- cmdline: Ignore trailing '/' at end of comic names. Useful
|
- cmdline: Ignore trailing '/' at end of comic names. Useful
|
||||||
when using shell completion to pick comics.
|
when using shell completion to pick comics. Patch by Dirk Reiners.
|
||||||
Patch by Dirk Reiners.
|
|
||||||
|
|
||||||
Fixes:
|
Fixes:
|
||||||
- comics: Fix DorkTower, MadamAndEve and Saturday Morning Breakfast
|
- comics: Fix DorkTower, MadamAndEve and Saturday Morning Breakfast
|
||||||
Cereal, and improve image filenames of CtrlAltDel.
|
Cereal, and improve image filenames of CtrlAltDel. Patch by Dirk Reiners.
|
||||||
Patch by Dirk Reiners.
|
|
||||||
|
|
||||||
|
|
||||||
Dosage 2.1 (released 14.4.2013)
|
Dosage 2.1 (released 14.4.2013)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
||||||
# Copyright (C) 2012-2013 Bastian Kleineidam
|
# Copyright (C) 2012-2013 Bastian Kleineidam
|
||||||
|
|
||||||
from re import compile
|
from re import compile, escape
|
||||||
|
|
||||||
from ..scraper import _BasicScraper
|
from ..scraper import _BasicScraper
|
||||||
from ..helpers import bounceStarter, indirectStarter
|
from ..helpers import bounceStarter, indirectStarter
|
||||||
|
@ -30,6 +30,26 @@ class UnicornJelly(_BasicScraper):
|
||||||
help = 'Index format: nnn'
|
help = 'Index format: nnn'
|
||||||
|
|
||||||
|
|
||||||
|
class Unsounded(_BasicScraper):
|
||||||
|
description = u'Some dead men tell tales, and some little girls have tails...'
|
||||||
|
url = 'http://www.casualvillain.com/Unsounded/'
|
||||||
|
stripUrl = url + 'comic/ch%s/ch%s_%s.html'
|
||||||
|
firstStripUrl = stripUrl % ('01', '01', '01')
|
||||||
|
rurl = escape(url)
|
||||||
|
imageSearch = compile(tagre("div", "id", r'comic') +
|
||||||
|
tagre("img", "src", r'(pageart/[^"]*)') )
|
||||||
|
prevSearch = compile(tagre("a", "href", r'([^"]*)', after='class="back'))
|
||||||
|
starter = indirectStarter(url,
|
||||||
|
compile(tagre("a", "href", r'(%scomic/[^"]*)' % rurl) +
|
||||||
|
tagre("img", "src", r"%simages/chibi02\.png" % rurl)))
|
||||||
|
help = 'Index format: chapter-number'
|
||||||
|
|
||||||
|
def getIndexStripUrl(self, index):
|
||||||
|
"""Get comic strip URL from index."""
|
||||||
|
chapter, num = index.split('-')
|
||||||
|
return self.stripUrl % (chapter, chapter, num)
|
||||||
|
|
||||||
|
|
||||||
# XXX disallowed by robots.txt
|
# XXX disallowed by robots.txt
|
||||||
class _UserFriendly(_BasicScraper):
|
class _UserFriendly(_BasicScraper):
|
||||||
url = 'http://ars.userfriendly.org/cartoons/?mode=classic'
|
url = 'http://ars.userfriendly.org/cartoons/?mode=classic'
|
||||||
|
|
Loading…
Reference in a new issue