Merge pull request #372 from Rikkitp/webnovel_author_fix

Fix author parsing at webnovelcom
This commit is contained in:
Jim Miller 2019-01-18 09:28:37 -06:00 committed by GitHub
commit 7ba0979f1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,7 +141,7 @@ class WWWWebNovelComAdapter(BaseSiteAdapter):
def parse_meta(mt,label,setmd):
if label in mt:
data = mt.split(label,1)[1].split(u'|', 1)[0].strip()
data = mt.split(label,1)[1].split('Translator:', 1)[0].split('Editor:', 1)[0].strip()
if data:
# print("setting %s to %s"%(setmd, data))
self.story.setMetadata(setmd, data)