View Single Post
Old 06-08-2010, 09:12 PM   #45
timlegge
Addict
timlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than momtimlegge loves his/her reader more than mom
 
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
I have attached a new version of the plugin to the first message in this thread (and deleted all the others). It seems to work on both Linux and Windows for my test cases (add-delete, add-eject-connect-delete, save books to disk)...

The only issue I currently know about is that the library does not update the on device status when you delete a book from the device.

If this resolves most outstanding issues I may take some time to simplify the code (I guess I will do that either way...

Changes in this are mostly related to path separators (linux vs Windows). I also added code to allow the delete to continue if a book is not found in the sqlite database (likely because it was deleted immediately after it was added or at least before the device was disconnected)

The path separator issue affected most of the issues. If you see any issues, it would be helpful to know which OS and what the calibre display showed the path to be for the file.
Tim

Last edited by timlegge; 06-08-2010 at 09:14 PM. Reason: add more info
timlegge is offline   Reply With Quote