fix StandStillStaySilent, strip urls when downloading

This commit is contained in:
Peter B 2014-06-04 01:58:16 -04:00
parent 71ed9ad69d
commit 78954da9d7
2 changed files with 3 additions and 3 deletions

2
dosagelib/comic.py Normal file → Executable file
View file

@ -42,7 +42,7 @@ class ComicImage(object):
"""Set URL and filename."""
self.name = name
self.referrer = referrer
self.url = url
self.url = url.strip()
self.dirname = dirname
filename = getFilename(filename)
self.filename, self.ext = os.path.splitext(filename)

View file

@ -465,8 +465,8 @@ class StandStillStaySilent(_BasicScraper):
rurl = escape(url)
stripUrl = url + '?page=%s'
firstStripUrl = stripUrl % '1'
imageSearch = compile(tagre("img", "src", r"(comicpages/[^']+)", before="comicnormal", quote="'"))
prevSearch = compile(tagre("a", "href", r"([^']+)", quote="'") + tagre("div", "id", r'navprev', quote="'"))
imageSearch = compile(tagre("img", "src", r'(comicpages/[^"]+)', before="comicnormal"))
prevSearch = compile(tagre("a", "href", r"([^']+)", quote="'") + tagre("div", "id", r'navprev'))
help = 'Index Format: number'
description = u'"Stand Still. Stay Silent" is a post-apocalyptic adventure story with a rather light tone and careless pace.'