mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Copy to library: Fix conversion options not being copied when copying books between libraries
This commit is contained in:
parent
694430406a
commit
f3c2f8f0dd
@ -166,12 +166,12 @@ class Worker(Thread): # {{{
|
|||||||
self.duplicate_ids[x] = (mi.title, mi.authors)
|
self.duplicate_ids[x] = (mi.title, mi.authors)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
newdb.import_book(mi, paths, notify=False, import_hooks=False,
|
new_book_id = newdb.import_book(mi, paths, notify=False, import_hooks=False,
|
||||||
apply_import_tags=tweaks['add_new_book_tags_when_importing_books'],
|
apply_import_tags=tweaks['add_new_book_tags_when_importing_books'],
|
||||||
preserve_uuid=self.delete_after)
|
preserve_uuid=self.delete_after)
|
||||||
co = self.db.conversion_options(x, 'PIPE')
|
co = self.db.conversion_options(x, 'PIPE')
|
||||||
if co is not None:
|
if co is not None:
|
||||||
newdb.set_conversion_options(x, 'PIPE', co)
|
newdb.set_conversion_options(new_book_id, 'PIPE', co)
|
||||||
self.processed.add(x)
|
self.processed.add(x)
|
||||||
finally:
|
finally:
|
||||||
for path in paths:
|
for path in paths:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user