Fix LeastICouldDo. See issue #1.

This commit is contained in:
Bastian Kleineidam 2013-01-23 20:01:18 +01:00
parent 1311d8b662
commit 95e1fbbe55
2 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,8 @@ Changes:
- comics: CyanideAndHappiness image filename now has the strip number prefixed. - comics: CyanideAndHappiness image filename now has the strip number prefixed.
Fixes: Fixes:
- comics: Fixed LeastICouldDo image URL.
Closes: GH bug #1
- documentation: Fix wrong option name: it's -a instead of -c. - documentation: Fix wrong option name: it's -a instead of -c.
Closes: GH bug #3 Closes: GH bug #3
- comics: Fix UnboundLocalError when using indexed retrieval. - comics: Fix UnboundLocalError when using indexed retrieval.

View file

@ -46,8 +46,8 @@ class LittleGamers(_BasicScraper):
class LeastICouldDo(_BasicScraper): class LeastICouldDo(_BasicScraper):
latestUrl = 'http://www.leasticoulddo.com/' latestUrl = 'http://leasticoulddo.com/'
stripUrl = latestUrl + 'comic/%s' stripUrl = latestUrl + 'comic/%s'
imageSearch = compile(r'<img src="(http://cdn.leasticoulddo.com/comics/\d{8}.\w{1,4})" />') imageSearch = compile(tagre("img", "src", r'(http://cdn\.leasticoulddo\.com/wp-content/uploads/\d+/\d+/\d{8}\.\w{1,4})'))
prevSearch = compile(r'<a href="(/comic/\d{8})">Previous</a>') prevSearch = compile(r'<a href="(/comic/\d{8})">Previous</a>')
help = 'Index format: yyyymmdd' help = 'Index format: yyyymmdd'