|
|
#1 |
|
doofus
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,555
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 |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
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.
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recipe for Arguments and Facts broken? | amontiel69 | Recipes | 1 | 03-02-2014 10:14 AM |
| Agency (ebook) pricing gone from arguments on MR to arguments in court. | RichL | News | 3 | 12-07-2011 08:40 AM |
| Feature Request: Detect internet connection before trying to download a recipe? | spedinfargo | Recipes | 3 | 07-25-2011 04:06 PM |
| Always same problem Calibre - MacBook Air 11 "Not enough arguments for format string" | Beachu | Calibre | 7 | 02-19-2011 02:15 PM |
| Is it possible to specify output format in recipe file | madcow_x2 | Calibre | 3 | 01-07-2010 05:10 PM |