mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-06 08:05:28 +01:00
Small bug in ff.net parsing was fixed
This commit is contained in:
parent
f55e6d3c05
commit
8c621d6a59
1 changed files with 7 additions and 1 deletions
8
ffnet.py
8
ffnet.py
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue