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 10-19-2021, 09:36 PM   #1
johnmcd
Member
johnmcd began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2021
Device: Kobo Clara HD
Convert book format via command line

Hi all,

I've been playing around with writing some utilities for a collection of ebooks, mostly just to get familiar with the various command line options for calibre. I can successfully add a .azw book with 'calibredb add', get the returned ID and update it's metadata with 'calibredb set_metadata'. What I'd like to do now is to convert the book to epub format so I have both formats within calibre. I looked at both the 'ebook-convert' and the 'calibredb add_format' options, and they both require that you specify an input file. Is there any way via the command line to have calibre convert an ebook already in its library to a different format? This would be the same as selecting a book via the GUI and clicking on 'Convert books'.

Thanks

John
johnmcd is offline   Reply With Quote
Old 10-19-2021, 11:06 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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
get the path to the book with calibredb list then convert it with ebook-convert and then add the converted file with calibredb add_format

Though better is to convert the book before adding and then add both files as a single book with calibredb add -r
kovidgoyal is offline   Reply With Quote
Advert
Old 10-20-2021, 07:34 AM   #3
johnmcd
Member
johnmcd began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2021
Device: Kobo Clara HD
Thank you!
johnmcd is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert command line autotoc mccnews Conversion 3 10-31-2012 10:32 AM
How to only get command line tool ebook-convert installed. okidogi Calibre 4 06-23-2011 10:59 AM
ABBYY Finereader - Possible to command line/auto convert? tessel Workshop 3 04-06-2011 11:08 AM
How to specify command line option for epub format kiklop74 Calibre 15 05-14-2010 04:24 AM
Command Line Options for ebook-convert godel10 Calibre 14 08-08-2009 08:28 AM


All times are GMT -4. The time now is 02:18 PM.


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