From 95e1fbbe5569b3c14225b595070b5d818ec27c25 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 23 Jan 2013 20:01:18 +0100 Subject: [PATCH] Fix LeastICouldDo. See issue #1. --- doc/changelog.txt | 2 ++ dosagelib/plugins/l.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 884121b58..718cad313 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -10,6 +10,8 @@ Changes: - comics: CyanideAndHappiness image filename now has the strip number prefixed. Fixes: +- comics: Fixed LeastICouldDo image URL. + Closes: GH bug #1 - documentation: Fix wrong option name: it's -a instead of -c. Closes: GH bug #3 - comics: Fix UnboundLocalError when using indexed retrieval. diff --git a/dosagelib/plugins/l.py b/dosagelib/plugins/l.py index 9c5fc515c..4266f2493 100644 --- a/dosagelib/plugins/l.py +++ b/dosagelib/plugins/l.py @@ -46,8 +46,8 @@ class LittleGamers(_BasicScraper): class LeastICouldDo(_BasicScraper): - latestUrl = 'http://www.leasticoulddo.com/' + latestUrl = 'http://leasticoulddo.com/' stripUrl = latestUrl + 'comic/%s' - imageSearch = compile(r'') + imageSearch = compile(tagre("img", "src", r'(http://cdn\.leasticoulddo\.com/wp-content/uploads/\d+/\d+/\d{8}\.\w{1,4})')) prevSearch = compile(r'Previous') help = 'Index format: yyyymmdd'