mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #1011 (fb22lrf: Traceback...BeautifulSoup.py)
This commit is contained in:
parent
ffd2bfa477
commit
e7c7cc64eb
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user