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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-25-2009, 04:44 AM   #1
mezme
Enthusiast
mezme began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Dec 2009
Device: PRS700
Comments - batch add?

I'm new to Calibre and have been browsing thru the program and so far... I love it. I did have a question... is there a way to add information to the comments field using the command line and does anyone have a good method for doing so? I'm very sure I can, over time, figure it out if so... but *grins* it's christmas! and I dont' want to reinvent the wheel if I don't have to!
mezme is offline   Reply With Quote
Old 12-25-2009, 10:38 AM   #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,465
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use

calibredb show_metadata

and

calibredb set_metadata
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 12-25-2009, 02:43 PM   #3
mezme
Enthusiast
mezme began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Dec 2009
Device: PRS700
Comments - Batch Add?

Okay... this is going to sound idiotic but... the CL for setting the metadata is:
calibredb set_metadata [options] id /path/to/metadata.opf

Would you mind giving me a practical example?
and yes... I'm having a slow redheaded blond moment here!

I figured out how to retrieve the list (love it!) with the calibre ID #s for the batch file, however, the user manual and the help features, left me a bit lost on exactly how to use the set_metadata function. What are the options they are talking about?

For instance... if I had this book:
Calibre ID: 4 (Author Name - Title - Series)
and I wanted to use the set_metadata option what would the command line look like to for the book with ID#4?

Second question... using the show_metadata function I noticed it lists the title and the author... is there a command line function that allows you to enter data such as the tags, comments or location of cover image?

Last edited by mezme; 12-25-2009 at 02:49 PM.
mezme is offline   Reply With Quote
Old 12-25-2009, 02:45 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,465
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You use the show_metadata to create the opf file. Then you use some utility to edit it (on unix it would be sed, not sure on windows) and then use set_metadata to sync the edited opf file back to the database.
kovidgoyal is offline   Reply With Quote
Old 12-26-2009, 12:48 AM   #5
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
Then you use some utility to edit it (on unix it would be sed, not sure on windows)
SED is available for Windows and IMHO it's the best tool there, too.

Merry Christmas!
Starson17 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
Comments field banjomike Calibre 7 04-08-2010 03:18 PM
Changing default Add Book behavior - Comments? Starson17 Calibre 19 02-28-2010 05:00 PM
Updated and no comments available Gfinch Calibre 2 08-04-2008 07:56 PM
Changes soon...Your comments please! Alexander Turcic Announcements 14 07-31-2003 02:32 AM


All times are GMT -4. The time now is 11:21 PM.


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