mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0e8017ade6
commit
b958545a8a
@ -1574,14 +1574,15 @@ class MobiWriter(object):
|
|||||||
id = unicode(oeb.metadata.cover[0])
|
id = unicode(oeb.metadata.cover[0])
|
||||||
item = oeb.manifest.ids[id]
|
item = oeb.manifest.ids[id]
|
||||||
href = item.href
|
href = item.href
|
||||||
index = self._images[href] - 1
|
if href in self._images:
|
||||||
exth.write(pack('>III', 0xc9, 0x0c, index))
|
index = self._images[href] - 1
|
||||||
exth.write(pack('>III', 0xcb, 0x0c, 0))
|
exth.write(pack('>III', 0xc9, 0x0c, index))
|
||||||
nrecs += 2
|
exth.write(pack('>III', 0xcb, 0x0c, 0))
|
||||||
index = self._add_thumbnail(item)
|
nrecs += 2
|
||||||
if index is not None:
|
index = self._add_thumbnail(item)
|
||||||
exth.write(pack('>III', 0xca, 0x0c, index - 1))
|
if index is not None:
|
||||||
nrecs += 1
|
exth.write(pack('>III', 0xca, 0x0c, index - 1))
|
||||||
|
nrecs += 1
|
||||||
|
|
||||||
exth = exth.getvalue()
|
exth = exth.getvalue()
|
||||||
trail = len(exth) % 4
|
trail = len(exth) % 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user