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 05-04-2013, 07:08 PM   #1
matyilona
Junior Member
matyilona began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2013
Device: Prestigio 3464B
Set template for device in plugin

I'm new to calibre plugins, and I have a Prestigio 3464B. I'm trying to write a driver for it, but it does not simply use a subdirectory for ebooks. It has a subdirectory, where there are a number of directories for the different languages (it comes with some ebooks in different languages). Is there a way to set the EBOOK_DIR_MAIN in the device plugin to something like Books/{languages}, or the set the template for the device to {languages}/{author_sort}/{title}/{title} - {authors}
?
matyilona is offline   Reply With Quote
Old 05-04-2013, 11:10 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: 26,125
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to override create_upload_path() in your driver class. See the original implementation in usbms/device.py for guidance.
kovidgoyal 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
Template language query. Removing all text after a set of characters da_jane Calibre 1 12-14-2012 01:37 PM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 04:58 PM
Set all available file types for plugin dinya Plugins 1 11-26-2011 09:03 PM
How to Set Device Name MechTheTech Devices 6 05-26-2011 02:40 PM
Send to device template rockeh Calibre 6 08-17-2010 05:28 PM


All times are GMT -4. The time now is 08:01 PM.


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