Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-01-2011, 03:46 PM   #1
plalloni
Junior Member
plalloni began at the beginning.
 
plalloni's Avatar
 
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?
plalloni is offline   Reply With Quote
Old 03-01-2011, 03:48 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: 26,468
Karma: 5383257
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
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 03-01-2011, 03:58 PM   #3
plalloni
Junior Member
plalloni began at the beginning.
 
plalloni's Avatar
 
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?
plalloni is offline   Reply With Quote
Old 03-01-2011, 05:15 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: 26,468
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use show_metadata to get the OPF
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 07:49 AM.


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