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-07-2021, 10:08 PM   #1
njpig
Connoisseur
njpig began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Get the path of debug-pipeline directory in recipe

Hi,

The command "ebook-convert recipe $tmp_dir_name/ebook.epub -d $tmp_dir_name" is run by me to fetch ebook.

I would like to write some data into debug-pipeline directory in parse_index() of the recipe.

Do I have a chance to get the path of debug-pipeline directory in parse_index()?


Thanks, Fei.
njpig is offline   Reply With Quote
Old 10-07-2021, 10:45 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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can get the path its will be opts.debug_pipeline but recipes are input plugins, so they are run before the debug pipeline is created. You will need to define the postprocess_book() method in your recipe which is run after the parsed stage of the debug pipeline
kovidgoyal is online now   Reply With Quote
Advert
Old 10-08-2021, 09:47 PM   #3
njpig
Connoisseur
njpig began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
Quote:
Originally Posted by kovidgoyal View Post
You can get the path its will be opts.debug_pipeline but recipes are input plugins, so they are run before the debug pipeline is created. You will need to define the postprocess_book() method in your recipe which is run after the parsed stage of the debug pipeline
Thanks.
njpig is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Richard Sharpe book in the pipeline issybird Reading Recommendations 0 10-15-2020 07:18 AM
Ctrl-Shft-R Debug vs calibre-debug -g JimmXinu Development 3 11-20-2014 09:57 AM
ebook-convert: access current working directory inside recipe jens32 Recipes 3 06-03-2011 10:57 AM
Adding pynliner to the conversion pipeline for some functions? ldolse Development 7 04-11-2011 01:25 PM


All times are GMT -4. The time now is 09:51 AM.


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