From 9d676fbd9cb24fdec0eeef0fecbaed20b738b7ac Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Oct 2010 10:55:27 -0600 Subject: [PATCH] ... --- src/calibre/ebooks/metadata/fb2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/fb2.py b/src/calibre/ebooks/metadata/fb2.py index 576fbaa6fc..6e0d56dfa0 100644 --- a/src/calibre/ebooks/metadata/fb2.py +++ b/src/calibre/ebooks/metadata/fb2.py @@ -33,7 +33,10 @@ def get_metadata(stream): le = XPath('descendant::fb2:last-name')(au) if le: lname = tostring(le[0]) - author += ' '+lname + if author: + author += ' '+lname + else: + author = lname if author: authors.append(author) if len(authors) == 1 and author is not None: