![]() |
#1 |
Connoisseur
![]() Posts: 96
Karma: 10
Join Date: Mar 2014
Device: Libra H20, Clara 2E
|
Set custom field value during "add"?
I have a script to add books to my Calibre library. I've just added some custom fields to the DB and would like to be able to set those from the script DURING the "add" command. Is this possible?
I know that I can make this work by running: Code:
calibredb list search..... followed by Code:
calibredb set_metadata ..... Thanks! Dan |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, but you dont need to use search. IIRC add outputs the ids of the added books, so you can simply use set_metadata directly after add.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() Posts: 96
Karma: 10
Join Date: Mar 2014
Device: Libra H20, Clara 2E
|
OK, thanks!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre "save to disk", "last_modified" field format | bodiccea | Calibre | 20 | 09-01-2018 04:09 AM |
Add Custom Column "#pages" in Send To | OldLincoln | Calibre Companion | 1 | 11-27-2016 03:29 AM |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |
No "Add a custom news source" | jmkizer | Recipes | 1 | 11-23-2011 05:48 PM |
Can't clear "custom" date field? | joegearhart | Calibre | 5 | 12-20-2010 03:32 AM |