Fix some comics.

This commit is contained in:
Bastian Kleineidam 2014-07-02 19:51:53 +02:00
parent b03ba158ef
commit 4c2a339e25
4 changed files with 7 additions and 6 deletions

View file

@ -5,7 +5,8 @@ Features:
Closes: GH bug #64
Fixes:
- comics: Fixed GirlGenius, LookingForGroup
- comics: Fixed DungeonsAndDenizens, GirlGenius, GirlsWithSlingshots,
LookingForGroup, ScandinaviaAndTheWorld.
Closes: GH bug #63, #66

View file

@ -328,7 +328,7 @@ class _DumbingOfAge(_BasicScraper):
class DungeonsAndDenizens(_BasicScraper):
url = 'http://dungeond.com/'
stripUrl = url + '\d/\d/\d/%s/'
stripUrl = url + r'\d+/\d+/\d+/%s/'
firstStripUrl = stripUrl % '08232005'
imageSearch = compile(tagre("img", "src", r'(%sfiles//comics/[^"]+)' % url))
prevSearch = compile(tagre("a", "href", r'(%s[^"]+)' % url) + "Previous")

View file

@ -119,14 +119,14 @@ class GirlGenius(_BasicScraper):
class GirlsWithSlingshots(_BasicScraper):
url = 'http://www.girlswithslingshots.com/'
rurl = escape(url)
stripUrl = url + 'comic/gws%s/'
firstStripUrl = stripUrl % '1'
stripUrl = url + 'comic/%s/'
firstStripUrl = stripUrl % 'gws1'
imageSearch = (
compile(tagre("img", "src", r'(%scomics/[^"]+)' % rurl)),
compile(tagre("img", "src", r'(http://cdn\.girlswithslingshots\.com/comics/[^"]+)')),
)
prevSearch = compile(tagre("a", "href", r'(%scomic/[^"]+)' % rurl, after="prev"))
help = 'Index format: nnn'
help = 'Index format: stripname'
class GlassHalfEmpty(_BasicScraper):

View file

@ -92,7 +92,7 @@ class ScandinaviaAndTheWorld(_BasicScraper):
description = u'Scandinavia and the World'
url = 'http://satwcomic.com/'
rurl = escape(url)
stripUrl = url + '%s/'
stripUrl = url + '%s'
firstStripUrl = stripUrl % 'sweden-denmark-and-norway'
imageSearch = compile(tagre("img", "src", r'(%sart/[^"/]+)' % rurl))
prevSearch = compile(tagre("a", "href", r'(%s[^"/]+)' % rurl)+"\s*"+tagre('span', 'class', 'spritePrevious'))