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 Closes: GH bug #64
Fixes: Fixes:
- comics: Fixed GirlGenius, LookingForGroup - comics: Fixed DungeonsAndDenizens, GirlGenius, GirlsWithSlingshots,
LookingForGroup, ScandinaviaAndTheWorld.
Closes: GH bug #63, #66 Closes: GH bug #63, #66

View file

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

View file

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

View file

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