10-28-2020, 12:03 PM | #1981 |
Member
Posts: 17
Karma: 10
Join Date: Apr 2020
Device: Kobo H2O
|
Interesting. I didn't realize Calibre allowed for Debug output.
I've cut and pasted the section detailing the book here. What's odd to me is that even though both Calibre and the Kobo list the book as 100 percent Read. The Debug output seems to be showing only 99 percent. Which I have to think is where the problem stems from. I just tried opening the book again on the Kobo and reading until the last page. That did not change the behavior. Code:
DEBUG: 0.9 _store_bookmarks - Current book: Bluff - Jane Stanton Hitchcock DEBUG: 0.9 _store_bookmarks - contentIds='['file:///mnt/onboard/Hitchcock, Jane Stanton/Bluff - Jane Stanton Hitchcock.epub']' DEBUG: 0.9 _store_bookmarks - contentId='file:///mnt/onboard/Hitchcock, Jane Stanton/Bluff - Jane Stanton Hitchcock.epub' DEBUG: 0.9 _store_bookmarks - device_status='None' DEBUG: 0.9 _store_bookmarks - result='{'ChapterIDBookmarked': 'OEBPS/Bluff.xhtml', 'adobe_location': None, 'ReadStatus': 2, '___PercentRead': 99, 'Attribution': 'Jane Stanton Hitchcock', 'DateLastRead': '2020-10-21T13:04:20Z', 'Title': 'Bluff', 'MimeType': 'application/epub+zip', 'Rating': None, 'ContentID': 'file:///mnt/onboard/Hitchcock, Jane Stanton/Bluff - Jane Stanton Hitchcock.epub'}' DEBUG: 0.9 _store_bookmarks - device_status= {'ChapterIDBookmarked': 'OEBPS/Bluff.xhtml', 'adobe_location': None, 'ReadStatus': 2, '___PercentRead': 99, 'Attribution': 'Jane Stanton Hitchcock', 'DateLastRead': '2020-10-21T13:04:20Z', 'Title': 'Bluff', 'MimeType': 'application/epub+zip', 'Rating': None, 'ContentID': 'file:///mnt/onboard/Hitchcock, Jane Stanton/Bluff - Jane Stanton Hitchcock.epub'} |
10-28-2020, 07:52 PM | #1982 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
Advert | |
|
10-29-2020, 01:18 AM | #1983 |
Guru
Posts: 931
Karma: 418804
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
|
Is reading the last page enough, or do you need to read _past_ the last page so it returns you to the previous screen and marks the book as finished...
|
10-29-2020, 01:28 AM | #1984 |
Custom User Title
Posts: 9,272
Karma: 63226963
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
From my own experience the last page of the book marks it as 99%. You have to actually finish the book to get 100%. Might depend on the book's length.
But from what pricciar said it was marked as 100% on his device so I'm not sure. |
10-29-2020, 03:27 AM | #1985 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The reading status (unread, reading, finished) is stored in the database along with the position and percent read. And the device doesn't always set the percent read to 100% for finished books. When the plugin gets the reading status, it uses the status to decide how to handle the percent read. A finished book will always be 100% and an unread always nothing. If the status is "reading", then percent read will be used exactly as in the database. And if you restore the reading status to the device, the percent read in calibre is use to set the reading status. 100% (or higher) will mean the reading status is set to finished, not set in calibre and 0% (though I have to check the last) will be unread and anything in between will be reading with the percent read set. |
|
Advert | |
|
10-29-2020, 08:32 AM | #1986 |
Member
Posts: 17
Karma: 10
Join Date: Apr 2020
Device: Kobo H2O
|
Thanks. I sent you the log in a pm.
Yes. I got to the last page and then continued until the Kobo took me out of the book. I didn't close it up at the last page. Sorry for saying that in a confusing way! |
10-29-2020, 09:34 AM | #1987 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
11-02-2020, 10:42 PM | #1988 |
Custom User Title
Posts: 9,272
Karma: 63226963
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Not sure if this is by design:
When Store on Connect > Only if More Recent is checked, and the timestamps on the device aren't newer than in the Calibre database, it won't auto-sync any columns that are currently null values. For example, if someone already has #lastread and #kobobookmarks columns, and then adds the other two. Any books that hadn't been read since the last time they connected won't sync to the new #percentread column unless doing a manual store. |
11-02-2020, 10:44 PM | #1989 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
11-04-2020, 07:47 PM | #1990 |
Custom User Title
Posts: 9,272
Karma: 63226963
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Is there a way to reset the 'last read' date on the device after accidentally opening a book? I turned off auto-sync for now but it keeps prompting me to put the new date in.
|
11-04-2020, 08:50 PM | #1991 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
If you opened a book you are reading but want to put the data back to the one in calibre, then use the restore part of "Store/Restore current bookmark". If you turned off the automatic store of the reading status, it shouldn't be prompting you with anything. Unless you do it manually, and then it only does it for the selected books. Just don't select that book. |
|
11-04-2020, 09:04 PM | #1992 |
Custom User Title
Posts: 9,272
Karma: 63226963
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
It was a non-sideloaded book that I'd finished a few years ago. I did try deleting it from the device in hopes of fixing it which caused some....other issues. Oops.
The "Set date to now" thing confused me. I checked the documentation and realized that unchecking it would set the date to the last-read column. That wasn't mentioned in the tooltip. Last edited by ownedbycats; 11-04-2020 at 09:10 PM. |
11-05-2020, 05:26 AM | #1993 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
11-05-2020, 08:49 AM | #1994 |
Member
Posts: 17
Karma: 10
Join Date: Apr 2020
Device: Kobo H2O
|
I'm not trying to hurry or bug you, just wondering if the beta that logs the needed information is something you are working on. If not, no big deal, I'll remove the book from my device and hope it fixes my problem.
|
11-07-2020, 02:47 AM | #1995 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The attached beta has a lot of extra debugging in the code fetching the reading status from the device. It should be enough to tell me what is going on. Install it and run in debug mode and send me the log. But, while doing this, I did notice a couple of Python 2/3 related things and fixed them. One of those might have fixed the problem, but, I don't think so. |
|
Tags |
calibre, kobo, kobo utilities, kobo-utilities, plugins |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Manga plugin | mastertea | Plugins | 6 | 01-06-2022 02:43 AM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
Kobo Utilities Plugin Question | nikev | Kobo Reader | 10 | 09-25-2018 11:55 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |