View Single Post
Old 01-13-2013, 09:06 PM   #1
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Driver plugin: get file path of ebook?

Is there a way for a device driver plugin to get the original file path of an ebook, or do I need to open metadata.db and query for the path from there? For example, if I have a book at C:\Users\jgoguen\ebooks\Author\awesomebook.epub and I upload it to my device, the only path I can find how to get with the API is the obfuscated path in a temporary folder. I'm working on a plugin that modifies ePub files in transit and I'd like to be able to save the modified files back to the calibre library and replace the original book.
jgoguen is offline   Reply With Quote