From e7c7cc64eb59b09a23109c6793d28624095036cd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 11 Sep 2008 09:38:12 -0700 Subject: [PATCH] Fix #1011 (fb22lrf: Traceback...BeautifulSoup.py) --- src/calibre/ebooks/metadata/fb2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/metadata/fb2.py b/src/calibre/ebooks/metadata/fb2.py index f66a25e703..1458a02f37 100644 --- a/src/calibre/ebooks/metadata/fb2.py +++ b/src/calibre/ebooks/metadata/fb2.py @@ -33,8 +33,8 @@ def get_metadata(stream): exts = ['.jpg'] cdata = (exts[0][1:], b64decode(binary.string.strip())) - if comments and len(comments) > 1: - comments = comments.p.contents[0] + if comments: + comments = u''.join(comments.findAll(text=True)) series = soup.find("sequence") mi = MetaInformation(title, author) mi.comments = comments