Fix some comics.

This commit is contained in:
Bastian Kleineidam 2013-02-27 19:40:54 +01:00
parent c5bd1df133
commit d7daf67e08
6 changed files with 9 additions and 9 deletions

View file

@ -148,6 +148,7 @@ class AstronomyPOTD(_BasicScraper):
noImageUrls = set([ noImageUrls = set([
'http://antwrp.gsfc.nasa.gov/apod/ap130217.html', # video 'http://antwrp.gsfc.nasa.gov/apod/ap130217.html', # video
'http://antwrp.gsfc.nasa.gov/apod/ap130218.html', # video 'http://antwrp.gsfc.nasa.gov/apod/ap130218.html', # video
'http://antwrp.gsfc.nasa.gov/apod/ap130226.html', # video
]) ])
prevSearch = compile(tagre("a", "href", r'(ap\d{6}\.html)') + "&lt;</a>") prevSearch = compile(tagre("a", "href", r'(ap\d{6}\.html)') + "&lt;</a>")
help = 'Index format: yymmdd' help = 'Index format: yymmdd'

View file

@ -28,7 +28,7 @@ class EerieCuties(_BasicScraper):
class Eriadan(_BasicScraper): class Eriadan(_BasicScraper):
url = 'http://www.shockdom.com/webcomics/eriadan/' url = 'http://www.shockdom.com/webcomics/eriadan/'
stripUrl = url + '%s' stripUrl = url + '%s'
imageSearch = compile(tagre("img", "src", r'(http://www\.shockdom\.com/webcomics/eriadan/files/[^"]+)', after='width="800"')) imageSearch = compile(tagre("img", "src", r'(http://www\.shockdom\.com/webcomics/eriadan/files/[^"]+)', after='width="[68]00"'))
prevSearch = compile(tagre("a", "href", r'([^"]+)', after="prev")) prevSearch = compile(tagre("a", "href", r'([^"]+)', after="prev"))
help = 'Index format: yyyy/mm/dd/nnn (unpadded)' help = 'Index format: yyyy/mm/dd/nnn (unpadded)'

View file

@ -34,7 +34,7 @@ class JoeAndMonkey(_BasicScraper):
class JohnnyWander(_BasicScraper): class JohnnyWander(_BasicScraper):
url = 'http://www.johnnywander.com/' url = 'http://www.johnnywander.com/'
stripUrl = url + 'comics/%s' stripUrl = url + 'comics/%s'
imageSearch = compile(tagre("img", "src", r'(http://www\.johnnywander\.com/files/comics/\d+\.jpg)')) imageSearch = compile(tagre("img", "src", r'(http://www\.johnnywander\.com/files/comics/[^"]+\.jpg)'))
prevSearch = compile(tagre("a", "href", r'(/comics/\d+)') + r'prev') prevSearch = compile(tagre("a", "href", r'(/comics/\d+)') + r'prev')
help = 'Index format: nnn' help = 'Index format: nnn'

View file

@ -46,7 +46,7 @@ class LittleGamers(_BasicScraper):
class LeastICouldDo(_BasicScraper): class LeastICouldDo(_BasicScraper):
url = 'http://leasticoulddo.com/' url = 'http://www.leasticoulddo.com/'
stripUrl = url + 'comic/%s' stripUrl = url + 'comic/%s'
imageSearch = compile(tagre("img", "src", r'(http://cdn\.leasticoulddo\.com/wp-content/uploads/\d+/\d+/\d{8}\.\w{1,4})')) imageSearch = compile(tagre("img", "src", r'(http://cdn\.leasticoulddo\.com/wp-content/uploads/\d+/\d+/\d{8}\.\w{1,4})'))
prevSearch = compile(tagre("a", "href", r'(http://www\.leasticoulddo\.com/comic/\d+/)', after="Previous")) prevSearch = compile(tagre("a", "href", r'(http://www\.leasticoulddo\.com/comic/\d+/)', after="Previous"))

View file

@ -46,7 +46,7 @@ class OnTheEdge(_BasicScraper):
class OneQuestion(_BasicScraper): class OneQuestion(_BasicScraper):
url = 'http://onequestioncomic.com/' url = 'http://www.onequestioncomic.com/'
stripUrl = url + 'comic.php?strip_id=%s' stripUrl = url + 'comic.php?strip_id=%s'
imageSearch = compile(tagre("img", "src", r'((?:\.\./)?istrip_files/strips/\d+\.jpg)')) imageSearch = compile(tagre("img", "src", r'((?:\.\./)?istrip_files/strips/\d+\.jpg)'))
prevSearch = compile(tagre("a", "href", r'(comic\.php\?strip_id=\d+)') + tagre("img", "src", r'img/arrow_prev\.jpg')) prevSearch = compile(tagre("a", "href", r'(comic\.php\?strip_id=\d+)') + tagre("img", "src", r'img/arrow_prev\.jpg'))

View file

@ -150,11 +150,10 @@ class SodiumEyes(_BasicScraper):
class Sorcery101(_BasicScraper): class Sorcery101(_BasicScraper):
baseUrl = 'http://www.sorcery101.net/' url = 'http://www.sorcery101.net/sorcery-101/'
url = baseUrl + 'sorcery-101/' stripUrl = url + '%s/'
stripUrl = baseUrl + 'sorcery101/%s/' imageSearch = compile(tagre("img", "src", r'(http://www\.sorcery101\.net/wp-content/uploads/\d+/\d+/[^"]+)'))
imageSearch = compile(tagre("img", "src", r'(http://www\.sorcery101\.net/comics/sorcery101/[^"]+)')) prevSearch = compile(tagre("a", "href", r'(http://www\.sorcery101\.net/sorcery-101/[^"]+)', after="previous-"))
prevSearch = compile(tagre("a", "href", r'(http://www\.sorcery101\.net/sorcery101/[^"]+)', after="previous-comic-link"))
help = 'Index format: stripname' help = 'Index format: stripname'