Fix #1011 (fb22lrf: Traceback...BeautifulSoup.py)

This commit is contained in:
Kovid Goyal 2008-09-11 09:38:12 -07:00
parent ffd2bfa477
commit e7c7cc64eb

View File

@ -33,8 +33,8 @@ def get_metadata(stream):
exts = ['.jpg'] exts = ['.jpg']
cdata = (exts[0][1:], b64decode(binary.string.strip())) cdata = (exts[0][1:], b64decode(binary.string.strip()))
if comments and len(comments) > 1: if comments:
comments = comments.p.contents[0] comments = u''.join(comments.findAll(text=True))
series = soup.find("sequence") series = soup.find("sequence")
mi = MetaInformation(title, author) mi = MetaInformation(title, author)
mi.comments = comments mi.comments = comments