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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2012, 06:20 PM   #1
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod

Spawned originally in the FanFictionDownLoader plugin thread I came up with a small modification for the built-in Kindle device interface plugin.

This basically takes care of updating the *.mbp file, if available, to match the *.mobi file in case its UID changes (which happens during the EPUB->MOBI conversion process with FFDL when using a Kindle).

This might be useful for other purposes or scenarios so I am posting it here. Some people suggested that it might even be a change that could be integrated into Calibre directly but I'll leave that up to Kovid etc.
Quote:
Originally Posted by cryzed View Post
[...]There was no easy and obvious way for it to work like I wanted, so I had to implement it as a device plugin that monkey-patches the built-in "Kindle 2/3/4/Touch Device Interface".

There should be no problems when Calibre updates, as long as there are no not-backwards compatible changes to the API.

To install it first disconnect your Kindle, disable the built-in "Kindle 2/3/4/Touch Device Interface" plugin in the "Device Interface plugins" section and then install my mod. After that simply restart Calibre.

Here is the code for anyone curious. As I said, I'm not responsible for any damage that it might cause -- I can just state that it works on my end.

And to clarify again: Using this simply allows you to keep your current reading location along with other metadata when you update a story with FFDL while using a Kindle or somehow else cause its UID to change. For example you are reading a story called "XYZ" and are currently at location ABC. Now usually when you would update the story with FFDL your current location would be reset, your highlights would disappear etc. -- using this they don't.
EDIT: After some testing with my new touch-generation device (Kindle Paperwhite) my plugin seems to be obsolete. So for anyone planning to make use of this plugin: only do so if your Kindle is not a touch-generation device.

The plugin is attached below.
Attached Files
File Type: zip Kindle 2, 3, 4, Touch Device Interface MBP Update Mod.zip (905 Bytes, 837 views)

Last edited by cryzed; 05-26-2014 at 04:56 PM.
cryzed is offline   Reply With Quote
Old 07-28-2012, 09:15 PM   #2
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,285
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
It does work for me.

But, FYI, if you changed the 'save template' in the built-in plugin, you'll need to copy that to this plugin for yourself. Otherwise you won't be saving your files in the same places.
JimmXinu is offline   Reply With Quote
Advert
Old 07-28-2012, 09:57 PM   #3
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
Ah yes, it is pretty much an exact copy of the built-in plugin but the settings aren't shared or automatically taken from the built-in one, you will need to reapply your customized settings if you had any.

Last edited by cryzed; 07-29-2012 at 09:52 AM.
cryzed is offline   Reply With Quote
Old 07-28-2012, 10:49 PM   #4
iatheia
Zealot
iatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmosiatheia has become one with the cosmos
 
Posts: 139
Karma: 21754
Join Date: Mar 2011
Device: Kindle 3, Icarus Illumina XL, Boyue T62
Works perfectly! When uploading one story at a time, at least. When multiple stories are selected to be sent to the device it gives an "Error communicating with device", with the following example message:

calibre, version 0.8.62
ERROR: Error: Error communicating with device

[Error 3] The system cannot find the path specified: u'I:\\documents\\fanfiction\\Tiger & Bunny\\Sindrom tighra i krolika\\Nachniom snachala (Effiekt babochki) - Kaoru13th.mobi\\fanfiction'

Traceback (most recent call last):
File "site-packages\calibre\gui2\device.py", line 82, in run
File "site-packages\calibre\gui2\device.py", line 455, in _upload_books
File "calibre_plugins.dummy1.__init__", line 19, in upload_books
File "site-packages\calibre\devices\usbms\device.py", line 1121, in create_upload_path
File "os.py", line 150, in makedirs
File "os.py", line 157, in makedirs
WindowsError: [Error 3] The system cannot find the path specified: u'I:\\documents\\fanfiction\\Tiger & Bunny\\Sindrom tighra i krolika\\Nachniom snachala (Effiekt babochki) - Kaoru13th.mobi\\fanfiction'



And occasionaly there is a case where html for the header is showing, if the location was navigated to the table of contents prior to the update, but nothing that page forward and back can't solve =)
iatheia is offline   Reply With Quote
Old 07-29-2012, 12:01 AM   #5
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
I will take care of that tomorrow, I already have an idea what's happening. Regarding the HTML, I fear there's nothing easy I can do about that, it would require me to retrieve the current location then navigate to it and increase until the current HTML tag ends... probably. I will check that out tomorrow as well.
cryzed is offline   Reply With Quote
Advert
Old 07-29-2012, 08:27 AM   #6
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
I replaced the *.zip file in the original post with an updated version of the script, the problem while sending multiple files to the device should now be fixed -- regarding the HTML, this is currently simply too much work for such a small flaw, a simple page forward/backwards entirely fixes it, so I won't look too much into it for now, unless there's huge interest for that (which I doubt). New source code can be found here.

Last edited by cryzed; 07-29-2012 at 09:52 AM.
cryzed is offline   Reply With Quote
Old 10-24-2012, 09:48 AM   #7
Dylan Tomorrow
Connoisseur
Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.Dylan Tomorrow ought to be getting tired of karma fortunes by now.
 
Posts: 62
Karma: 640495
Join Date: Jul 2012
Location: Germany
Device: Kindle Touch, Android smartphone w/ FBReader
Huh, I've found that the Kindle Touch does already keep the reading position if I update a fanfic with a new chapter, be it a MOBI created by FFDL or an FFDL-created EPUB that I've converted to MOBI with KindleGen (though at first glance it seems like it does not – you have to open the file once before the progress indicator in the book list is updated). Even the notes are kept, though if the author changed the summary at the beginning or edited chapters, they'll be offset a by the according number of words added or removed. Does this plugin stop this offset from happening?
Dylan Tomorrow is offline   Reply With Quote
Old 10-28-2012, 04:58 PM   #8
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
I am not sure to be honest, seeing as I don't own a touch-generation device yet, you just might have to test it.

EDIT: After some testing with my new touch-generation device (Kindle Paperwhite) my plugin seems to be obsolete, you are right. So for anyone planning to make use of this plugin: only do so if your Kindle is not a touch-generation device.

Last edited by cryzed; 02-10-2013 at 01:48 PM.
cryzed 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
Kindle touch landscape and new interface with new update arad26 Amazon Kindle 8 04-12-2012 01:28 AM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 10:11 AM
Having problems with Kindle Device Interface/Page # Plugin bfollowell Plugins 1 08-10-2011 05:53 PM
Reset Sony Device Interface plugin? NLight95 Devices 2 04-04-2011 06:40 PM
Device interface plugin - nook badmadbug Plugins 2 09-06-2010 11:03 AM


All times are GMT -4. The time now is 11:59 AM.


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