mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:43:44 +02:00
calibredb add: Also print out added book id when adding an empty book
This commit is contained in:
parent
277ba496bf
commit
a569eec8d0
1 changed files with 2 additions and 1 deletions
|
|
@ -357,8 +357,9 @@ def do_add_empty(db, title, authors, isbn, tags, series, series_index, cover):
|
|||
mi.series, mi.series_index = series, series_index
|
||||
if cover:
|
||||
mi.cover = cover
|
||||
db.import_book(mi, [])
|
||||
book_id = db.import_book(mi, [])
|
||||
write_dirtied(db)
|
||||
prints(_('Added book ids: %s')%book_id)
|
||||
send_message()
|
||||
|
||||
def command_add(args, dbpath):
|
||||
|
|
|
|||
Loading…
Reference in a new issue