View Single Post
Old 06-19-2013, 09:32 PM   #113
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by auspex View Post
That would be awesome. As I just said to Peter in another thread, that sort of manual input is what I'm trying to avoid. You might want it to be optional, though - if I know my on-device database is wrong, for whatever reason (perhaps the case of someone who reads on two different devices, but with one Calibre), I wouldn't want to be forced to store the wrong number.
That is one of the challenges. PeterT's suggestion is to have the store of the reading position run automatically after connecting the device. Preventing clearing the position after a factory reset is easy and the code should already handle this. This is easy because all the sideloaded books will be unread.

What you are after is a lot more complicated. There is now way to automatically know if the reading position on the device is the one you want or not. One of the uses I have for the restore is when i have looked back in the book and lost where I was up to. I usually set a bookmark before doing this, but frequently forget. Restoring the reading position will get me to the last known place.

There is no way good way to handle this. Taking the further in of the two is one way, but, there are reasons this doesn't work. One is that I have book on my Glo that I am about 50% into, but haven't read for over six months. The last time I looked at it, I realised I was going to have to start from the beginning and at least skim through it to remind me what has happened. When I start, this will put me at an earlier spot in the book. There is no way to tell the difference between the above two situations without some manual intervention.

The first version of this will be an optional automatic job that stores the current reading position for all books on the device. If the book is unread on the device, it won't change the position in the library. If there is a problem with this, you will need to turn the job off before connecting the device. The later versions of this will probably get more complicated.
davidfor is offline