mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
816e5c4b55
commit
c88c951699
@ -18,7 +18,8 @@ def implementation(db, notify_changes, book_id, only_fmts):
|
||||
with db.write_lock:
|
||||
if db.has_id(book_id):
|
||||
db.embed_metadata((book_id,), only_fmts=only_fmts)
|
||||
formats_added({book_id: db.formats(book_id)})
|
||||
if notify_changes is not None:
|
||||
notify_changes(formats_added({book_id: db.formats(book_id)}))
|
||||
return db.field_for('title', book_id)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user