Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-03-2016, 01:01 PM   #1
RobertoOG
Member
RobertoOG began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jun 2016
Location: Bolivia, South America
Device: Kobo aura h2o
Lightbulb Call another plugin from my plugin

Hi, I want to make a plugin that automatically converts my .epub to .kepub format when it's imported. Currently there is a plugin that makes that conversion, what I want is to call it whenever the user imports a new epub, then call another plugin that counts the pages, and then another plugin that hyphenates the words on it.

How can I call a plugin from my own FileTypePlugin?

Thank you very much

Last edited by RobertoOG; 12-03-2016 at 02:09 PM. Reason: Explaining my plan
RobertoOG is offline   Reply With Quote
Advert
Old 12-03-2016, 10:14 PM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 13,292
Karma: 21339656
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo: Touch, Glo, Aura H2O, Glo HD, Aura ONE
In this case, you don't want to call the other plugin. What you want to do is to start a conversion to the kepub format. But, why do you need to add this? Calibre can already convert any added books to your current preferred output format.

If for some reason this isn't suitable, you should be able to look at the code in calibre that starts the conversion when adding a book, and call or duplicate it in your plugin.

I should add if you do need to call another plugin, have a look at FanFicFare. It can call the Count Pages and Reading List plugins. It isn't hard, and I have done it in a plugi I haven't released. I'll track down the details if the above doesn't help.

Last edited by davidfor; 12-03-2016 at 10:22 PM.
davidfor is offline   Reply With Quote
Old 12-04-2016, 12:08 PM   #3
RobertoOG
Member
RobertoOG began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jun 2016
Location: Bolivia, South America
Device: Kobo aura h2o
Thanks Davidfor, I'll take a look to that plugin and see what I can learn from it.
RobertoOG is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 403 07-29-2017 02:19 PM
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 23 08-16-2016 07:53 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 03:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 01:11 PM


All times are GMT -4. The time now is 05:57 PM.


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