From bb337a0a5dc61cb131512af8b22762aff484d136 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 14 Feb 2016 17:47:52 +0530 Subject: [PATCH] ignore empty authors --- oml/meta/google.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/meta/google.py b/oml/meta/google.py index b2988f1..96d6422 100644 --- a/oml/meta/google.py +++ b/oml/meta/google.py @@ -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()