Small bug in ff.net parsing was fixed

This commit is contained in:
sigizmund 2009-12-17 13:44:07 +00:00
parent f55e6d3c05
commit 8c621d6a59

View file

@ -32,7 +32,13 @@ class FFNet:
self.host = parsedUrl.netloc
self.path = parsedUrl.path
(empty, s, self.storyId, chapter) = self.path.split('/')
if self.path.startswith('/'):
self.path = self.path[1:]
if self.path.endswith('/'):
self.path = self.path[:-1]
(s, self.storyId, chapter) = self.path.split('/')
logging.debug('self.storyId=%s, chapter=%s' % (self.storyId, chapter))