Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 10-25-2016, 01:04 PM   #1
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,549
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Can recipe detect output format, passed arguments

Can I determine inside a recipe what output format was specified? I want to handle epub and mobi a little differently.

Also, can I pass command line arguments to a recipe, as are done with username and password?

Thanks
Barty is offline   Reply With Quote
Old 10-25-2016, 09:58 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,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Implement postprocess_book in your recipe which is passed the opts object used by the conversion pipeline.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe for Arguments and Facts broken? amontiel69 Recipes 1 03-02-2014 09:14 AM
Agency (ebook) pricing gone from arguments on MR to arguments in court. RichL News 3 12-07-2011 07:40 AM
Feature Request: Detect internet connection before trying to download a recipe? spedinfargo Recipes 3 07-25-2011 03:06 PM
Always same problem Calibre - MacBook Air 11 "Not enough arguments for format string" Beachu Calibre 7 02-19-2011 01:15 PM
Is it possible to specify output format in recipe file madcow_x2 Calibre 3 01-07-2010 04:10 PM


All times are GMT -4. The time now is 06:20 AM.


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