Fixed problem with LookingForGroup comic

This commit is contained in:
Helge Stasch 2015-05-07 13:57:10 +02:00
parent 9a009018c7
commit 5a1ef9b791

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'