mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Add a conditional to storiesonline.net metadata parse to not infinite-loop when Listing Theme is changed.
This commit is contained in:
parent
061fa592e6
commit
4981af2447
1 changed files with 2 additions and 0 deletions
|
|
@ -198,6 +198,8 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter):
|
|||
asoup = self.make_soup(data)
|
||||
|
||||
a = asoup.findAll('td', {'class' : 'lc2'})
|
||||
if len(a) < 1:
|
||||
raise exceptions.FailedToDownload("StoriesOnline: Story details not found on Author page(s)--Please use 'Classic' Listing Theme.")
|
||||
for lc2 in a:
|
||||
if lc2.find('a', href=re.compile(r'^/s/'+self.story.getMetadata('storyId'))):
|
||||
i=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue