Merge pull request #20 from Freestila/master

Fixed problem with LookingForGroup comic
This commit is contained in:
Manabi 2015-05-07 22:30:12 -04:00
commit 666249e06f

View file

@ -3,7 +3,7 @@
# Copyright (C) 2012-2014 Bastian Kleineidam
from re import compile, escape
from ..scraper import _BasicScraper
from ..scraper import _BasicScraper, _ParserScraper
from ..helpers import bounceStarter, indirectStarter
from ..util import tagre
@ -87,15 +87,14 @@ class LoadingArtist(_BasicScraper):
help = 'Index format: yyyy/mm/dd/stripname'
class LookingForGroup(_BasicScraper):
class LookingForGroup(_ParserScraper):
url = 'http://www.lfgcomic.com/'
rurl = escape(url)
stripUrl = url + 'page/%s/'
firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r'(http://(?:www|cdn)\.lfgcomic\.com/wp-content/uploads/\d+/\d+/lfg[^"]+)'))
#http://www.lfgcomic.com/wp-content/uploads/2014/06/lfg2827-787-jun30-14.gif
prevSearch = compile(tagre("a", "href", r'(%spage/[-0-9]+/)' % rurl, after="comic-nav-prev"))
starter = indirectStarter(url,
compile(tagre("a", "href", r'(%spage/[-0-9]+/)' % rurl, after="feature-item-link")))
css = True
imageSearch = '#comic img'
prevSearch = '#comic-left > a'
starter = indirectStarter(url, '#header-dropdown-comic-lfg > a:nth-of-type(2)')
nameSearch = compile(r'/page/([-0-9]+)/')
help = 'Index format: nnn'