From 437170afe989f8e29b114103c27d667efb2da62f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Feb 2019 23:07:44 +0530 Subject: [PATCH] Fix a regression in 3.39 that caused a harmless error message when using copy to library for books that have been converted Fixes #1814279 [3.39 breaks copying between libraries using the GUI](https://bugs.launchpad.net/calibre/+bug/1814279) --- src/calibre/db/copy_to_library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/db/copy_to_library.py b/src/calibre/db/copy_to_library.py index 1141b01052..0a5b18f453 100644 --- a/src/calibre/db/copy_to_library.py +++ b/src/calibre/db/copy_to_library.py @@ -58,9 +58,9 @@ def postprocess_copy(book_id, new_book_id, new_authors, db, newdb, identical_boo if link_map: newdb.set_link_for_authors(link_map) - co = db.conversion_options(book_id, 'PIPE') + co = db.conversion_options(book_id) if co is not None: - newdb.set_conversion_options(new_book_id, 'PIPE', co) + newdb.set_conversion_options({new_book_id:co}) if identical_books_data is not None and duplicate_action != 'add': newdb.update_data_for_find_identical_books(new_book_id, identical_books_data)