From b03ba158ef52c79136f5f44230dd35a256cce2ae Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 1 Jul 2014 23:44:01 +0200 Subject: [PATCH] Fixed LookingForGroup --- doc/changelog.txt | 4 ++-- dosagelib/plugins/l.py | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 099a41cfc..ffee51b25 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -5,8 +5,8 @@ Features: Closes: GH bug #64 Fixes: -- comics: Fixed GirlGenius - Closes: GH bug #63 +- comics: Fixed GirlGenius, LookingForGroup + Closes: GH bug #63, #66 Dosage 2.14 (released 8.6.2014) diff --git a/dosagelib/plugins/l.py b/dosagelib/plugins/l.py index 7a0fcd481..6f447fe8b 100644 --- a/dosagelib/plugins/l.py +++ b/dosagelib/plugins/l.py @@ -97,9 +97,10 @@ class LookingForGroup(_BasicScraper): rurl = escape(url) stripUrl = url + 'page/%s/' firstStripUrl = stripUrl % '1' - imageSearch = compile(tagre("img", "src", r'(http://(?:www|cdn)\.lfgcomic\.com/wp-content/uploads/[^"]+)')) - prevSearch = compile(tagre("a", "href", r'(%spage/[-0-9]+/)' % rurl, after="navtop-prev")) + 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-previous"))) + compile(tagre("a", "href", r'(%spage/[-0-9]+/)' % rurl, after="feature-item-link"))) nameSearch = compile(r'/page/([-0-9]+)/') help = 'Index format: nnn'