ignore empty authors
This commit is contained in:
parent
9e7b8445eb
commit
bb337a0a5d
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ def parse_entry(entry_):
|
||||||
_id = id_url.split('/')[-1]
|
_id = id_url.split('/')[-1]
|
||||||
info = {}
|
info = {}
|
||||||
info['title'] = ': '.join([x.text for x in title(entry_)]).strip()
|
info['title'] = ': '.join([x.text for x in title(entry_)]).strip()
|
||||||
authors = [x.text.strip() for x in creator(entry_) if x.text]
|
authors = [x.text.strip() for x in creator(entry_) if x.text and x.text.strip()]
|
||||||
if authors:
|
if authors:
|
||||||
info['author'] = authors
|
info['author'] = authors
|
||||||
info['description'] = '\n\n'.join([x.text for x in description(entry_)]).strip()
|
info['description'] = '\n\n'.join([x.text for x in description(entry_)]).strip()
|
||||||
|
|
Loading…
Reference in a new issue