mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 00:43:03 +02:00
Fix #407
This commit is contained in:
parent
e8f76739da
commit
f53fc46c42
1 changed files with 5 additions and 1 deletions
|
|
@ -366,7 +366,11 @@ def fget(self):
|
|||
try:
|
||||
return dom.parseString(src)
|
||||
except:
|
||||
return dom.parseString(src.replace('\x00', '').strip())
|
||||
try:
|
||||
return dom.parseString(src.replace('\x00', '').strip())
|
||||
except:
|
||||
src = src.replace('\x00', '').strip().decode('latin1')
|
||||
return dom.parseString(src.encode('utf-8'))
|
||||
except zlib.error:
|
||||
raise LRFException("Unable to decompress document meta information")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue