mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
[Bug] A better way to workaround a strange problem when extracting some SNB files with PDF contents.
This commit is contained in:
parent
60c7c66349
commit
e373c822e2
@ -83,6 +83,8 @@ class SNBFile:
|
|||||||
data = snbFile.read(bSize)
|
data = snbFile.read(bSize)
|
||||||
if len(data) < 32768:
|
if len(data) < 32768:
|
||||||
uncompressedData += bzdc.decompress(data)
|
uncompressedData += bzdc.decompress(data)
|
||||||
|
else:
|
||||||
|
uncompressedData += data
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print e
|
print e
|
||||||
if len(uncompressedData) != self.plainStreamSizeUncompressed:
|
if len(uncompressedData) != self.plainStreamSizeUncompressed:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user