ignore empty authors

This commit is contained in:
j 2016-02-14 17:47:52 +05:30
parent 9e7b8445eb
commit bb337a0a5d
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def parse_entry(entry_):
_id = id_url.split('/')[-1]
info = {}
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:
info['author'] = authors
info['description'] = '\n\n'.join([x.text for x in description(entry_)]).strip()