mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 21:11:59 +02:00
Moved the check for a completed story higher in the code, this makes the continue's that are in that portion of the if statement not skip that check.
This commit is contained in:
parent
617dc21eb9
commit
cfb218f21e
1 changed files with 4 additions and 4 deletions
|
|
@ -186,6 +186,10 @@ class FFNet(FanfictionSiteAdapter):
|
|||
(u1, u2, self.authorId, u3) = s2.a['href'].split('/')
|
||||
logging.debug('self.authorId=%s, self.authorName=%s' % (self.authorId, self.authorName))
|
||||
elif l.find("Rated: <a href=") != -1:
|
||||
if "Complete" in l:
|
||||
self.storyStatus = 'Completed'
|
||||
else:
|
||||
self.storyStatus = 'In-Progress'
|
||||
s2 = bs.BeautifulStoneSoup(l)
|
||||
self.storyRating = unicode(s2.a.string).strip()
|
||||
logging.debug('self.storyRating=%s' % self.storyRating)
|
||||
|
|
@ -207,10 +211,6 @@ class FFNet(FanfictionSiteAdapter):
|
|||
logging.debug('self.genre=%s' % self.genre)
|
||||
self._splitGenre(self.genre)
|
||||
logging.debug('self.subjects=%s' % self.subjects)
|
||||
if "Complete" in l:
|
||||
self.storyStatus = 'Completed'
|
||||
else:
|
||||
self.storyStatus = 'In-Progress'
|
||||
elif l.find("<SELECT title='chapter navigation'") != -1:
|
||||
if len(urls) > 0:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue