Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-25-2013, 12:33 PM   #1
chemi
Member
chemi began at the beginning.
 
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.
chemi is offline   Reply With Quote
Old 02-25-2013, 12:53 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,539
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibredb set_metadata -h
kovidgoyal is offline   Reply With Quote
Advert
Old 02-25-2013, 01:31 PM   #3
chemi
Member
chemi began at the beginning.
 
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.
chemi is offline   Reply With Quote
Old 02-25-2013, 01:44 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,539
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Parse the output from the add command
kovidgoyal is offline   Reply With Quote
Old 02-25-2013, 01:57 PM   #5
chemi
Member
chemi began at the beginning.
 
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.
chemi is offline   Reply With Quote
Advert
Old 02-25-2013, 02:17 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,539
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your version of calibre is out of date.
kovidgoyal is offline   Reply With Quote
Old 02-25-2013, 03:55 PM   #7
chemi
Member
chemi began at the beginning.
 
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.
chemi is offline   Reply With Quote
Old 02-25-2013, 11:16 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,539
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Newer versions of calibre all output the ids of added books.
kovidgoyal is offline   Reply With Quote
Reply

Tags
command line, import books


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding books from command line chemi Library Management 3 02-25-2013 12:28 PM
Adding book from command line bdillahu Calibre 3 01-24-2012 12:19 PM
adding books via command line in msdos batch FlaKate Calibre 1 12-25-2009 02:12 AM
Adding books from the command line edembowski Calibre 1 08-29-2009 12:18 PM
Checking and Importing from the Command Line markbond1007 Calibre 3 08-06-2009 01:46 PM


All times are GMT -4. The time now is 06:54 PM.


MobileRead.com is a privately owned, operated and funded community.