From 5a1ef9b791d98879805bbabca791eed06ed5fc10 Mon Sep 17 00:00:00 2001 From: Helge Stasch Date: Thu, 7 May 2015 13:57:10 +0200 Subject: [PATCH] Fixed problem with LookingForGroup comic --- dosagelib/plugins/l.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dosagelib/plugins/l.py b/dosagelib/plugins/l.py index 7af1fd33c..b842f4c36 100644 --- a/dosagelib/plugins/l.py +++ b/dosagelib/plugins/l.py @@ -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'