From a0728b07d05785e60995656cf894c86ff96874ff Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 21 Jul 2024 13:46:22 +0200 Subject: [PATCH] Fix wrong quotes on calibre binary call for windows --- cps/embed_helper.py | 2 +- cps/tasks/convert.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/embed_helper.py b/cps/embed_helper.py index 71de216d..54db47ef 100644 --- a/cps/embed_helper.py +++ b/cps/embed_helper.py @@ -28,7 +28,7 @@ log = logger.create() def do_calibre_export(book_id, book_format): try: - quotes = [3, 5, 7, 9] + quotes = [4, 6] tmp_dir = get_temp_dir() calibredb_binarypath = get_calibre_binarypath("calibredb") temp_file_name = str(uuid4()) diff --git a/cps/tasks/convert.py b/cps/tasks/convert.py index e6af356f..3bef81a9 100644 --- a/cps/tasks/convert.py +++ b/cps/tasks/convert.py @@ -255,7 +255,7 @@ class TaskConvert(CalibreTask): try: # path_tmp_opf = self._embed_metadata() if config.config_embed_metadata: - quotes = [3, 5] + quotes = [5] tmp_dir = get_temp_dir() calibredb_binarypath = os.path.join(config.config_binariesdir, SUPPORTED_CALIBRE_BINARIES["calibredb"]) my_env = os.environ.copy()