mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #402
This commit is contained in:
parent
e1899e9f1c
commit
4e856a3481
@ -366,6 +366,7 @@ class LRFMetaFile(object):
|
|||||||
if len(src) != self.uncompressed_info_size:
|
if len(src) != self.uncompressed_info_size:
|
||||||
raise LRFException("Decompression of document meta info\
|
raise LRFException("Decompression of document meta info\
|
||||||
yielded unexpected results")
|
yielded unexpected results")
|
||||||
|
src = src.replace('\x00', '').strip()
|
||||||
return dom.parseString(src)
|
return dom.parseString(src)
|
||||||
except zlib.error:
|
except zlib.error:
|
||||||
raise LRFException("Unable to decompress document meta information")
|
raise LRFException("Unable to decompress document meta information")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user