Fix some comics.

This commit is contained in:
Bastian Kleineidam 2013-03-07 18:22:24 +01:00
parent d1e5ad2696
commit 23c20bfe32
7 changed files with 8 additions and 5 deletions

View file

@ -172,7 +172,7 @@ class BratHalla(_BasicScraper):
class BrentalFloss(_BasicScraper): class BrentalFloss(_BasicScraper):
url = 'http://brentalflossthecomic.com/' url = 'http://www.brentalflossthecomic.com/'
stripUrl = url + '?id=%s' stripUrl = url + '?id=%s'
imageSearch = compile(tagre("img", "src", r'([^"]*/img/comic/[^"]*)')) imageSearch = compile(tagre("img", "src", r'([^"]*/img/comic/[^"]*)'))
prevSearch = compile(tagre("a", "href", r'([^"]*)') + "Prev") prevSearch = compile(tagre("a", "href", r'([^"]*)') + "Prev")
@ -194,6 +194,7 @@ class BrentalFlossFit(BrentalFloss):
if url: if url:
return url.replace("\n", "") return url.replace("\n", "")
class BrentalFlossGuest(BrentalFloss): class BrentalFlossGuest(BrentalFloss):
name = 'BrentalFloss/GuestComics' name = 'BrentalFloss/GuestComics'
url = 'http://brentalflossthecomic.com/guestcomics/' url = 'http://brentalflossthecomic.com/guestcomics/'

View file

@ -211,7 +211,6 @@ add('Farcus', '/farcus')
add('FaronSquare', '/faron-square') add('FaronSquare', '/faron-square')
add('FatCats', '/fat-cats') add('FatCats', '/fat-cats')
add('Featherweight', '/featherweight') add('Featherweight', '/featherweight')
add('FlexandTone', '/flex-and-tone')
#add('FloandFriends', '/floandfriends') #add('FloandFriends', '/floandfriends')
add('FoolishMortals', '/foolish-mortals') add('FoolishMortals', '/foolish-mortals')
add('ForBetterorForWorse', '/forbetterorforworse') add('ForBetterorForWorse', '/forbetterorforworse')

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/[^"]+\.jpg)')) imageSearch = compile(tagre("img", "src", r'(http://www\.johnnywander\.com/files/comics/[^"]+)'))
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

@ -49,7 +49,6 @@ class NewAdventuresOfBobbin(_BasicScraper):
url = 'http://www.bobbin-comic.com/bobbin_strips/' url = 'http://www.bobbin-comic.com/bobbin_strips/'
imageSearch = compile(tagre("a", "href", r'(\d+\.gif)')) imageSearch = compile(tagre("a", "href", r'(\d+\.gif)'))
multipleImagesPerStrip = True multipleImagesPerStrip = True
prevSearch = None
help = 'Index format: none' help = 'Index format: none'

View file

@ -63,7 +63,7 @@ class OnTheEdge(_BasicScraper):
class OneQuestion(_BasicScraper): class OneQuestion(_BasicScraper):
url = 'http://www.onequestioncomic.com/' url = 'http://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

@ -100,6 +100,9 @@ class ToonHole(_BasicScraper):
prevSearch = compile(tagre("a", "href", r'(http://www\.toonhole\.com/\d+/\d+/[^"]+)', after="prev")) prevSearch = compile(tagre("a", "href", r'(http://www\.toonhole\.com/\d+/\d+/[^"]+)', after="prev"))
help = 'Index format: yyyy/mm/stripname' help = 'Index format: yyyy/mm/stripname'
def shouldSkipUrl(self, url):
return url in ("http://www.toonhole.com/2013/03/if-game-of-thrones-was-animated/",)
# XXX disallowed by robots.txt # XXX disallowed by robots.txt
class _TwoLumps(_BasicScraper): class _TwoLumps(_BasicScraper):

View file

@ -30,6 +30,7 @@ exclude_comics = [
"DellAndSteve", # too few comics "DellAndSteve", # too few comics
"Dilbert", # redirect "Dilbert", # redirect
"DutchnPals", # too few comics "DutchnPals", # too few comics
"FlexandTone", # too few comics
"InkeeDoodles", # comic unavailable "InkeeDoodles", # comic unavailable
"MaggiesComics", # too few comics "MaggiesComics", # too few comics
"OfMiceandMud", # too few comics "OfMiceandMud", # too few comics