![]() |
#1 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2013
Device: Sony Reader PRS-T2
|
Adding custom fields when importing books via command line
Hi, I have added some custom fields to my library model.
Now, when I am importing books from command line with calibredb command I don't find the way to fill those custom fields. Is there any undocumented parameter to achieve that? I was reading this http://manual.calibre-ebook.com/cli/calibredb.html#add Thanks in advance, Chemi. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibredb set_metadata -h
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2013
Device: Sony Reader PRS-T2
|
Thanks!
Problem I see is that I need the id of the book to update the metadata and I was adding the book for the first time in that moment. Anyway to get the id of the added book without executing a search? No way to add the custom metadata as part of the add command? Once again, thanks a lot, Chemi. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Parse the output from the add command
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2013
Device: Sony Reader PRS-T2
|
I don't receive the id, just two message lines:
calibredb add -a Chemi -t Ejemplo -e --library-path "D:\Calibre Portable\Calibre Library" Backing up metadata Notifying calibre of the change Any verbose argument perhaps? Thanks, Chemi. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your version of calibre is out of date.
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2013
Device: Sony Reader PRS-T2
|
Updated to 0.9.20 and I have the same output.
Any suggestion? Verbose parameter? Debug parameter? BTW, I am using Portable version. Don't think it makes any difference but just in case... Thanks again, Chemi. |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Newer versions of calibre all output the ids of added books.
|
![]() |
![]() |
![]() |
Tags |
command line, import books |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding books from command line | chemi | Library Management | 3 | 02-25-2013 11:28 AM |
Adding book from command line | bdillahu | Calibre | 3 | 01-24-2012 11:19 AM |
adding books via command line in msdos batch | FlaKate | Calibre | 1 | 12-25-2009 01:12 AM |
Adding books from the command line | edembowski | Calibre | 1 | 08-29-2009 11:18 AM |
Checking and Importing from the Command Line | markbond1007 | Calibre | 3 | 08-06-2009 12:46 PM |