09-11-2015, 08:45 AM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2012
Location: Germany
Device: Sony PRS 650 (retired), Kobo Aura HD
|
API ability for editing epub while transfering to device
Hello,
I have a question which I couldn't get answered by reading the plugin API: Is there any way to implement functionality in a plugin that edits the contents of an epub while transfering to the device (or maybe edit the epub on the device after transfering). I don't want to have to implement a device driver plugin but use the current activated one. I'd just want to hijack the transfer and edit the epub zip contents, unaware of the concrete underlying device and its driver plugin. Does the API provide an endpoint for this? Thanks in advance. |
09-11-2015, 08:53 AM | #2 |
creator of calibre
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, but you can simply create your own device plugin (I know you said you dont want to do that, but you can have the device plugin inherit from the builtin device driver class and simply override only the transfer method). The disable the builtin plugin and use your custom one.
|
Advert | |
|
09-11-2015, 09:01 AM | #3 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
sts: As you list an Kobo ereader as your device, you might want to look at both the KoboTouch driver and the KoboTouchExtended driver. Both make changes to epubs as they are sent. You can use the KoboTouchExtended driver as an example, or you can probably subclass either and hook into the changes they make.
|
09-11-2015, 09:18 AM | #4 |
Junior Member
Posts: 9
Karma: 10
Join Date: Dec 2012
Location: Germany
Device: Sony PRS 650 (retired), Kobo Aura HD
|
Ah, okay, thanks for this suggestion to inherit the kobodriver. I'll give it a try.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transfering bought kepub from device to PC | anacreon | Kobo Reader | 9 | 09-13-2013 08:51 AM |
Problem Transfering From Calibre to Device | niagara94 | Library Management | 2 | 05-02-2013 07:13 PM |
transfering ebooks from pc to android device | paulnic7 | Android Devices | 10 | 09-19-2011 02:33 PM |
Editing medadata and transfering back to nook | TabathaB | Library Management | 1 | 08-02-2011 08:58 PM |
Transfering collections to new device | Maupassant | Sony Reader Dev Corner | 4 | 11-24-2009 08:17 PM |