Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-11-2015, 08:45 AM   #1
sts
Junior Member
sts began at the beginning.
 
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.
sts is offline   Reply With Quote
Old 09-11-2015, 08:53 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,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.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-11-2015, 09:01 AM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
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.
davidfor is offline   Reply With Quote
Old 09-11-2015, 09:18 AM   #4
sts
Junior Member
sts began at the beginning.
 
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.
sts 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
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


All times are GMT -4. The time now is 10:28 PM.


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