Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-01-2015, 09:25 AM   #1
annoywife
Member
annoywife began at the beginning.
 
Posts: 12
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, 09: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: 43,853
Karma: 22666666
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
Advert
Old 02-01-2015, 10:24 AM   #3
annoywife
Member
annoywife began at the beginning.
 
Posts: 12
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, 06:08 PM   #4
eschwartz
Ex-Helpdesk Junkie
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: 19,422
Karma: 85397180
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


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Author And Title From Filename & Import Other Tags And Cover From File DazJWood Library Management 25 10-06-2021 10:18 AM
Adding books...can we specify SPECIFIC types of files to import? GiggleGoddess Library Management 3 08-29-2014 08:39 PM
Other file types and 2.3.2 davidfor Kobo Reader 4 01-16-2013 04:52 PM
Set all available file types for plugin dinya Plugins 1 11-26-2011 09:03 PM
Run plugin before import dremo Plugins 6 01-09-2009 12:40 PM


All times are GMT -4. The time now is 07:00 AM.


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