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 11-26-2011, 12:44 PM   #1
dinya
Member
dinya began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2011
Device: none
Set all available file types for plugin

Hello all.

I'm writing plugin (FileTypePlugin, on_import=True), which should set values automatically on book adding. It should proccess all file formats.

So, is it only way to process all formats add them in file_types set? Like

file_types = set(['pdf', 'djvu', ...])

Is it possible process all formats without listing them all?

Thanks in advance, Denis
dinya is offline   Reply With Quote
Old 11-26-2011, 09:03 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: 25,282
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You have to list them all.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 Supported file types for downloading chrisridd Sony Reader 2 11-13-2011 10:44 AM
can I convert ebook file types? crazysmile enTourage eDGe 14 09-20-2011 02:32 AM
Touch 'supported' file types tomsem Barnes & Noble NOOK 3 06-23-2011 10:19 PM
how to set an alternate reader as default for some file types? zed88 Calibre 3 04-21-2011 04:21 PM
Embed other video file types daffy4u Feedback 8 02-09-2010 09:46 AM


All times are GMT -4. The time now is 04:29 AM.


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