From 6e897c78f1c80308f1973c0398c81762afa1eb28 Mon Sep 17 00:00:00 2001 From: doe Date: Wed, 6 Aug 2014 02:10:25 +0200 Subject: [PATCH] themaplebookshelf: URL normalization in __init__ --- fanficdownloader/adapters/adapter_themaplebookshelf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fanficdownloader/adapters/adapter_themaplebookshelf.py b/fanficdownloader/adapters/adapter_themaplebookshelf.py index 51ce4b47..bd21d2df 100644 --- a/fanficdownloader/adapters/adapter_themaplebookshelf.py +++ b/fanficdownloader/adapters/adapter_themaplebookshelf.py @@ -38,6 +38,7 @@ class TheMapleBookshelfComSiteAdapter(BaseSiteAdapter): self.story.setMetadata('siteabbrev','maplebook') self.decode = ["Windows-1252", "utf8"] self.story.setMetadata('storyId', re.compile(self.getSiteURLPattern()).match(url).group('storyId')) + self._setURL("http://%s/Literati/viewstory.php?sid=%s" % (self.getSiteDomain(), self.story.getMetadata('storyId'))) self.dateformat = "%b %d, %Y" @staticmethod