mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-15 21:32:28 +01:00
adapter_storiesonlinenet: Remove some code that broke parsing when 'author' was in the title.
This commit is contained in:
parent
fc9d184f20
commit
75f89beab1
1 changed files with 1 additions and 5 deletions
|
|
@ -210,11 +210,7 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter):
|
|||
a = soup.find('h1')
|
||||
self.story.setMetadata('title',stripHTML(a))
|
||||
|
||||
# Find authorid and URL from... author url. Sometimes in top,
|
||||
# other times in footer.
|
||||
authfrom = soup.find('div', {'id':'top-header'})
|
||||
if authfrom is None or 'author' not in str(authfrom):
|
||||
authfrom = soup.find('footer')
|
||||
authfrom = soup.find('footer')
|
||||
alist = authfrom.findAll('a', {'rel' : 'author'})
|
||||
for a in alist:
|
||||
self.story.addToList('authorId',a['href'].split('/')[2])
|
||||
|
|
|
|||
Loading…
Reference in a new issue