mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Revert last change because it might not always work.
This commit is contained in:
parent
6a23f90a11
commit
4598b0238c
@ -149,7 +149,7 @@ class EbookIterator(object):
|
|||||||
if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover:
|
if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover:
|
||||||
cfile = os.path.join(os.path.dirname(self.spine[0]),
|
cfile = os.path.join(os.path.dirname(self.spine[0]),
|
||||||
'calibre_iterator_cover.html')
|
'calibre_iterator_cover.html')
|
||||||
open(cfile, 'wb').write(TITLEPAGE%cover.encode('utf-8'))
|
open(cfile, 'wb').write(TITLEPAGE%cover)
|
||||||
self.spine[0:0] = [SpineItem(cfile)]
|
self.spine[0:0] = [SpineItem(cfile)]
|
||||||
self.delete_on_exit.append(cfile)
|
self.delete_on_exit.append(cfile)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user