View Single Post
Old 03-24-2015, 07:16 AM   #4
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Take a look on the sticky posts at the top of this forum and calibre help for adding news: http://manual.calibre-ebook.com/news.html. There is an additional section at the end of this help called API documentation for recipes. Very useful. At least it is maybe a good idea to take a look to the command line interface help: http://manual.calibre-ebook.com/gene...cli-index.html

I use for recipe development two simple batch files in a working directory like "Your_Recipe" what runs the recipe via command line:

Your_Recipe.bat:

Code:
call Delete_Your_Recipe.bat
ebook-convert Your_Recipe.recipe .epub -vvv --debug-pipeline debug > Your_Recipe.log
And Delete_Your_Recipe.bat:

Code:
rmdir debug. /s /q
del Your_Recipe.epub
del Your_Recipe.log
The first batch file call a delete-batch for all previous created debug and log files if available and start then the recipe in debug modus and collect all screen printed information’s in a log file.
-vvv defines the level of verbosity
The second batch simply delete all created directories and files (debug- and log files)
Divingduck is offline   Reply With Quote