mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3868c8eef3
commit
837211f437
@ -432,7 +432,7 @@ class Mobi8Reader(object):
|
|||||||
href = 'images/%05d.%s'%(container.resource_index, imgtype)
|
href = 'images/%05d.%s'%(container.resource_index, imgtype)
|
||||||
with open(href.replace('/', os.sep), 'wb') as f:
|
with open(href.replace('/', os.sep), 'wb') as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
elif typ == b'\xa0\xa0\xa0\xa0' and len(data) == 4:
|
elif typ == b'\xa0\xa0\xa0\xa0' and len(data) == 4 and container is not None:
|
||||||
container.resource_index += 1
|
container.resource_index += 1
|
||||||
elif container is None:
|
elif container is None:
|
||||||
if not (len(data) == len(PLACEHOLDER_GIF) and data == PLACEHOLDER_GIF):
|
if not (len(data) == len(PLACEHOLDER_GIF) and data == PLACEHOLDER_GIF):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user