View Single Post
Old 02-24-2025, 09:47 PM   #681
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,123
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by BetterRed View Post
Then it must be two plugins, a File Type plugin that runs when when a book is added, and a Conversion Input plugin that runs when a format file is Converted - afaik, a single plugin cannot do both.
File Type plugins can choose do their thing at several different places within calibre. The initialization function in DeDRM has:

Code:
    on_import               = True
    on_preprocess           = True
Where "preprocess" is the first step in conversion before the input plugin is invoked.
jhowell is offline   Reply With Quote