mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:03:36 +02:00
py3: Fix bulk convert not working
This commit is contained in:
parent
442354bce9
commit
745a3ef952
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
|||
GuiRecommendations, load_defaults, load_specifics, save_specifics,
|
||||
get_input_format_for_book, NoSupportedInputFormats)
|
||||
from calibre.gui2.convert import bulk_defaults_for_input_format
|
||||
from polyglot.builtins import unicode_type
|
||||
from polyglot.builtins import unicode_type, as_bytes
|
||||
|
||||
|
||||
def convert_single_ebook(parent, db, book_ids, auto_conversion=False, # {{{
|
||||
|
|
@ -187,7 +187,7 @@ def do_book(self):
|
|||
index_is_id=True)
|
||||
|
||||
out_file = PersistentTemporaryFile('.' + self.output_format)
|
||||
out_file.write(self.output_format)
|
||||
out_file.write(as_bytes(self.output_format))
|
||||
out_file.close()
|
||||
temp_files = [in_file]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue