![]() |
#1 |
Junior Member
![]() 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}
? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,145
Karma: 27110894
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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |