diff --git a/cps/embed_helper.py b/cps/embed_helper.py index f222bcd05..6a815889e 100644 --- a/cps/embed_helper.py +++ b/cps/embed_helper.py @@ -36,7 +36,8 @@ def do_calibre_export(book_id, book_format): if config.config_calibre_split: my_env['CALIBRE_OVERRIDE_DATABASE_PATH'] = os.path.join(config.config_calibre_dir, "metadata.db") library_path = config.get_book_path() - opf_command = [calibredb_binarypath, 'export', '--dont-write-opf', '--with-library', library_path, + opf_command = [calibredb_binarypath, 'export', '--dont-write-opf', '--dont-save-cover', + '--with-library', library_path, '--to-dir', tmp_dir, '--formats', book_format, "--template", "{}".format(temp_file_name), str(book_id)] p = process_open(opf_command, quotes, my_env)