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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-01-2015, 10:25 AM   #1
annoywife
Junior Member
annoywife began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2015
Device: none
Plugin to run on import of all file types

I have a Calibre plugin that I want to run when any file is imported into Calibre. The only plugin type I have found on http://manual.calibre-ebook.com/plugins.html that will run when a file is imported is a FileTypePlugin, but it looks like the file types for which the plugin will run must be manually keyed into the plugin code.

Is there a way to construct a FileTypePlugin so that it runs when any file type is imported by Calibre? Alternatively, is there another type of plugin that could accomplish this goal?

Thanks for your help.
annoywife is offline   Reply With Quote
Old 02-01-2015, 10:30 AM   #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: 26,793
Karma: 5456159
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, there is noway to run a plugin on any file import. Just add all the file types to your plugin, surely you aren't planing on storing an infinite number of file types.
kovidgoyal is offline   Reply With Quote
Old 02-01-2015, 11:24 AM   #3
annoywife
Junior Member
annoywife began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2015
Device: none
Thanks - not a huge deal. Just wanted to avoid the eventual frustration of adding some new file type, seeing that the plugin didn't run as expected, trying to troubleshoot, and then eventually realizing "oh, right, I have to manually key this new extension into the plugin."

Thanks again. And don't call me Shirley
annoywife is offline   Reply With Quote
Old 02-01-2015, 07:08 PM   #4
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 9,863
Karma: 21811723
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
What about using BOOK_EXTENSIONS from calibre.ebooks? If only the usual ebook formats will be needed...
eschwartz 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
Adding books...can we specify SPECIFIC types of files to import? GiggleGoddess Library Management 3 08-29-2014 09:39 PM
Import Author And Title From Filename & Import Other Tags And Cover From File DazJWood Library Management 22 07-18-2014 10:22 AM
Other file types and 2.3.2 davidfor Kobo Reader 4 01-16-2013 05:52 PM
Set all available file types for plugin dinya Plugins 1 11-26-2011 10:03 PM
Run plugin before import dremo Plugins 6 01-09-2009 01:40 PM


All times are GMT -4. The time now is 09:03 PM.


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