fixed the gamercat
This commit is contained in:
parent
561005887a
commit
dc427d6066
1 changed files with 9 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Copyright (C) 2012-2014 Bastian Kleineidam
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
||||||
|
|
||||||
from re import compile, escape, IGNORECASE
|
from re import compile, escape, IGNORECASE
|
||||||
from ..scraper import _BasicScraper
|
from ..scraper import _BasicScraper, _ParserScraper
|
||||||
from ..helpers import indirectStarter
|
from ..helpers import indirectStarter
|
||||||
from ..util import tagre
|
from ..util import tagre
|
||||||
|
|
||||||
|
@ -46,14 +46,15 @@ class TheDreamlandChronicles(_BasicScraper):
|
||||||
bp[2] = bp[2][:-1]
|
bp[2] = bp[2][:-1]
|
||||||
return "%s-%s-%s.%s" % (bp[0], bp[1], bp[2], ext)
|
return "%s-%s-%s.%s" % (bp[0], bp[1], bp[2], ext)
|
||||||
|
|
||||||
class TheGamerCat(_BasicScraper):
|
class TheGamerCat(_ParserScraper):
|
||||||
url = 'http://www.thegamercat.com/'
|
url = "http://www.thegamercat.com/"
|
||||||
rurl = escape(url)
|
rurl = escape(url)
|
||||||
stripUrl = url + '%s/'
|
stripUrl = url + "comic/%s/"
|
||||||
firstStripUrl = stripUrl % '2011/06/06102011'
|
firstStripUrl = stripUrl % "06102011"
|
||||||
imageSearch = compile(tagre("img", "src", r'(%swordpress/comics/[^"/]+)' % rurl))
|
css = True
|
||||||
prevSearch = compile(tagre("a", "href", r'(%s\d+/\d+/[^"/]+/)' % rurl , after="navi navi-prev"))
|
imageSearch = '#comic img'
|
||||||
help = 'Index format: yyyy/mm/mmddyyyy'
|
prevSearch = '.comic-nav-previous'
|
||||||
|
help = 'Index format: stripname'
|
||||||
|
|
||||||
|
|
||||||
class TheGentlemansArmchair(_BasicScraper):
|
class TheGentlemansArmchair(_BasicScraper):
|
||||||
|
|
Loading…
Reference in a new issue