From 78954da9d7bc2df074187b7052caf69e310322d5 Mon Sep 17 00:00:00 2001 From: Peter B Date: Wed, 4 Jun 2014 01:58:16 -0400 Subject: [PATCH] fix StandStillStaySilent, strip urls when downloading --- dosagelib/comic.py | 2 +- dosagelib/plugins/s.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 dosagelib/comic.py diff --git a/dosagelib/comic.py b/dosagelib/comic.py old mode 100644 new mode 100755 index 0864e60b3..8225fbbe2 --- a/dosagelib/comic.py +++ b/dosagelib/comic.py @@ -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) diff --git a/dosagelib/plugins/s.py b/dosagelib/plugins/s.py index 19b2d91df..39164dc43 100755 --- a/dosagelib/plugins/s.py +++ b/dosagelib/plugins/s.py @@ -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.'