themaplebookshelf: URL normalization in __init__

This commit is contained in:
doe 2014-08-06 02:10:25 +02:00
parent 52ccebf16e
commit 6e897c78f1

View file

@ -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