Merge remote-tracking branch 'tmp-orphan-on-download/fix-calibredb-cover-sibling'

This commit is contained in:
Ozzie Isaacs
2026-04-25 13:25:34 +02:00

View File

@@ -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)