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