|
|
#1 |
|
High Fantasy Bibliophage
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 236
Karma: 119529
Join Date: Jan 2013
Location: New Brunswick, Canada
Device: Kobo Glo
|
Driver plugin: get file path of ebook?
|
|
|
|
|
|
#2 | |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 960
Karma: 8388999
Join Date: Dec 2006
Location: Singapore
Device: Coolreader(Galaxy S4)\Coolreader(Nook Touch)
|
Quote:
__________________
"Too often we... enjoy the comfort of opinion without the discomfort of thought"-JFK |
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No there's no way to get the original file path in a device driver. Device drivers are not supposed to be modifying files in the library. I for one would be pretty annoyed if sending files to a device caused the originals to be changed. Why do you need this capability?
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,879
Karma: 285970
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Also note that device drivers run on a different thread. Modifying the library in any way from a device driver could lead to very difficult to debug inconsistencies. In addition, the ebook could have been modified by a plugboard before being handed to the device driver. Those modifications must not be made permanent.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#5 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,954
Karma: 2574555
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
My 2 cents
Many people don't keep the original source file in the same place (if at all) after import into Calibre, thus making use of any 'logged' 'original path/filename' inconsistent on further usage at best
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#6 | |
|
High Fantasy Bibliophage
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 236
Karma: 119529
Join Date: Jan 2013
Location: New Brunswick, Canada
Device: Kobo Glo
|
Quote:
It's more of something that I personally would like to have the option for. The driver plugin I'm working on modifies the contents of ePub files (adds extra span tags to allow annotation saving and last read position saving to work better) before sending them to the device and I'd prefer to not have to re-parse the files on the occasional times where I re-upload a book for some reason. If the intention is that a driver plugin should never actually do this I won't bother, I can accomplish the same thing by removing the calibre book and saving from the device into my library. Last edited by jgoguen; 01-14-2013 at 07:31 AM. Reason: Missed an important post |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get the file path of the ebook in the frontmost Ebook Viewer window | johnsidi | Development | 1 | 07-16-2012 10:37 AM |
| User Defined device plugin - path | scubaman | Devices | 1 | 12-22-2011 11:44 AM |
| [Device Interface Plugin] Update for Nook Color Driver | jmricker | Plugins | 0 | 10-22-2011 10:11 AM |
| Driver Plugin not rekognized | silentguy | Plugins | 2 | 12-01-2010 12:14 PM |
| Remove file path from PDF file | DuckDodgers | 1 | 08-13-2006 09:23 AM | |