|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2011
Device: Sony PRS-600
|
Add book by CLI
Hello everyone!
This is my first post on this forums so please excuse if I miss any protocol. My question is simple, I have a bunch of books in diverse formats which I want to add to my Calibre Library passing the isbn along with the ebook file. I've managed to extract ISBN for every ebook through a little script of my own. But when I try to add the ebook to calibre using: calibredb add -i <some-isbn> <some-ebook-file> Calibre ignores the isbn. What's the correct way of doing this? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That only works when you are creating an empty book record. Use calibredb set_metadata to set metadata for a book record
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2011
Device: Sony PRS-600
|
If I understand set_metadata correctly it only accepts an opf file as input which I don't have and it only accepts book id to address it which I don't have.
To get the id I could use the list command with some grepping & cutting, slow... but ok. If I use set_metadata does it overwrite ALL the metadata currently associated with the given ebook? If so I would have to ask calibre for the OPF file with show_metadata --as-opf, modify it adding the isbn and then use set_metadata... ¿right? |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use show_metadata to get the OPF
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Struggling with CLI | Paulinafrica | Calibre | 4 | 01-08-2011 03:04 PM |
| Issue with german translation of CLI tools | Manichean | Calibre | 4 | 10-24-2010 12:52 PM |
| Cannot add a book to Calibre | daithi81 | Calibre | 20 | 01-30-2010 11:01 PM |
| Adding online metadata using ISBN from CLI | EditorJack | Calibre | 17 | 01-20-2009 02:47 AM |
| prs505 cli | ees | Calibre | 3 | 01-10-2009 04:27 AM |