mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Fix author parsing for webnovel.com (#254)
This commit is contained in:
parent
d009816831
commit
489ffa5449
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
|
|||
for para in paras:
|
||||
parat = stripHTML(para)
|
||||
if parat[:7] == 'Author:':
|
||||
author = parat.split('Author:', 1)[1].split(u'\xb7', 1)[0].strip()
|
||||
author = parat.split('Author:', 1)[1].split(u'|', 1)[0].strip()
|
||||
self.story.setMetadata('author', author)
|
||||
self.story.setMetadata('authorId', author)
|
||||
# There is no authorUrl for this site, so I'm setting it to the story url
|
||||
|
|
|
|||
Loading…
Reference in a new issue