Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-12-2025, 11:57 AM   #451
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,721
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by serpyke View Post
I may be mistaken, but if I used the plugin to delete the book covers from the device and then again to send the covers from my library to the books on the device... shouldn't the covers inside the books have been changed as well as those in the directories referenced by DNSB? All the books I put on the Kobo had covers measuring at least 800 x 1200 pixels, and in Calibre's preview of the books on the device, those covers are displayed as just over 300 x 500; so I assumed that it was showing one of the files in that directories and not the covers inside the books. Sorry if I'm mixing things up, but I'm not really sure how it works, to be honest.
Use either the editor to change the book's cover or use the Modify ePub plugin to change the book's cover. Then resend the book to your Kobo. But make sure you have "Do not treat replacements as new books" checked in the KoboTouch driver. With this option checked, when you send the eBook again to your Kobo to overwrite the existing copy, the Kobo will not treat it as a new book.
JSWolf is offline   Reply With Quote
Old 09-12-2025, 12:07 PM   #452
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by serpyke View Post
Quote:
Originally Posted by chaley View Post
If you want the cover inside the book on the device to change then you must resend the book after updating the cover in the calibre library.
But then, would I lose my reading statistics if I delete a book from Kobo and then send it again, either original or sideloaded?

Thanks for the help.
If you delete and re-add then I would guess "yes", assuming you are talking about statistics stored on the device. I don't know what happens with stats in calibre such as those maintained by the Reading Goal plugin.

However, if the Kobo driver's option "Do not treat replacements as new books" is checked then based on the option's tooltip I would think not. I've never done it so I can't be more precise. Perhaps someone with experience can provide more insight. EDIT: I see that JSWolf has already been "more precise".
chaley is offline   Reply With Quote
Advert
Old 09-12-2025, 12:11 PM   #453
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,721
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by chaley View Post
If you delete and re-add then I would guess "yes", assuming you are talking about statistics stored on the device. I don't know what happens with stats in calibre such as those maintained by the Reading Goal plugin.

However, if the Kobo driver's option "Do not treat replacements as new books" is checked then based on the option's tooltip I would think not. I've never done it so I can't be more precise. Perhaps someone with experience can provide more insight. EDIT: I see that JSWolf has already been "more precise".
The Reading Goal plugin gets it's data from calibre. For example, when Kobo Utilities updates the reading stats then Reading Goal can update the pages read and mark the book as finished if it is finished. It doesn't get info off of the device.
JSWolf is offline   Reply With Quote
Old 09-12-2025, 12:15 PM   #454
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
The Reading Goal plugin gets it's data from calibre. For example, when Kobo Utilities updates the reading stats then Reading Goal can update the pages read and mark the book as finished if it is finished. It doesn't get info off of the device.
Clearly it is getting info off the device. If the book is deleted and added again, the progress will fly back to zero. Unless something else is going on such as restoring reading positions, KU will update calibre and Reading Goal will see that update.
chaley is offline   Reply With Quote
Old 09-12-2025, 01:35 PM   #455
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 48,073
Karma: 174315300
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
If you know you haven't modified the Table of Contents, renamed files, etc., you could check the Do not treat replacements as new books on the 2nd tab of the KoboTouch driver configuration. This will preserve reading statistics. I backup the Kobo reading statistics into calibre which I find useful after a factory reset to restore (this is an option in the Kobo Utilities plugin customization).

I don't use Embed Metadata so I'm not sure if it would update the cover in the ebook. You could use Polish or Modify ePub instead.

Last edited by DNSB; 09-12-2025 at 01:37 PM.
DNSB is offline   Reply With Quote
Advert
Old 09-12-2025, 01:42 PM   #456
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,721
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
If you know you haven't modified the Table of Contents, renamed files, etc., you could check the Do not treat replacements as new books on the 2nd tab of the KoboTouch driver configuration. This will preserve reading statistics. I backup the Kobo reading statistics into calibre which I find useful after a factory reset to restore (this is an option in the Kobo Utilities plugin customization).

I don't use Embed Metadata so I'm not sure if it would update the cover in the ebook. You could use Polish or Modify ePub instead.
Using Modify ePub makes less changes to to the ePub then Polish does.
JSWolf is offline   Reply With Quote
Old 09-12-2025, 01:46 PM   #457
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 48,073
Karma: 174315300
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Using Modify ePub makes less changes to to the ePub then Polish does.
Depends on which options you have checked. I use both though Modify ePub is my normal choice.
DNSB is offline   Reply With Quote
Old 09-12-2025, 01:53 PM   #458
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,721
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by chaley View Post
Clearly it is getting info off the device. If the book is deleted and added again, the progress will fly back to zero. Unless something else is going on such as restoring reading positions, KU will update calibre and Reading Goal will see that update.
Kobo Utilities is getting the info from the device. But Reading Goal is using that info that's stored in calbre.

If you use the option in KoboTouch Do not treat replacements as new books you can send the version with the replaced cover and Kobo will treat the new version as the same eBook and you will not lose your reading place, bookmarks, and highlights. Buy doing this, you do not have to delete the eBooks that's alread on the device. IT will just overwrite it and the device will treat it as the same eBook.

Last edited by JSWolf; 09-12-2025 at 02:00 PM.
JSWolf is offline   Reply With Quote
Old 09-12-2025, 02:01 PM   #459
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,721
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Depends on which options you have checked. I use both though Modify ePub is my normal choice.
When I'm editing my eBook, I'll make sure the cover is what I want or the best available cover I can find if the included cover is not good enough (too small or generic).
JSWolf is offline   Reply With Quote
Old 09-12-2025, 02:15 PM   #460
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 48,073
Karma: 174315300
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For me, once I have the book in calibre and updated the metadata and cover, I use Modify ePub to embed the metadata and cover before editing. I do use a Sigil saved search that replaces the calibre cover code with my preferred code.
DNSB is offline   Reply With Quote
Old 09-12-2025, 11:05 PM   #461
Majutsushi
Zealot
Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'
 
Posts: 122
Karma: 10128
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
I think I have fixed the issue where updating the ToC would sometimes result in a 'UNIQUE constraint failed' error. I would really appreciate it if people who have encountered the error could give the attached version of the plugin a try to see if it fixes the issue for them. If it does then I can release the fix as a new version.
Attached Files
File Type: zip KoboUtilities-v2.24.3-3-g8cf4fad-dirty.zip (276.2 KB, 46 views)
Majutsushi is offline   Reply With Quote
Old 09-16-2025, 02:56 AM   #462
serpyke
Junior Member
serpyke began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2025
Device: Kobo Libra Colour
Well, it seems I've learnt a few things. I'll run some tests to see what happens when I replace the books and take a look at Modify ePub, I've always used Embed Metadata, thinking it was the best option if I changed the cover or metadata in Calibre. Thank you.
serpyke is offline   Reply With Quote
Old 09-26-2025, 12:50 AM   #463
JonnyH
Junior Member
JonnyH began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2025
Device: Kobo Sage
Hi

Thanks for this plugin - I've been using it for a while. Though just today I started getting an error trying up update some ToC data on my Kobo Sage. I did just update to calibre 8.11 - perhaps that's related?

The exception, for reference:

Quote:
calibre, version 8.11.0
ERROR: Unhandled exception: <b>XMLSyntaxError</b>:internal error, line 76, column 52 (&lt;string&gt;, line 76)

calibre 8.11 embedded-python: True
Windows-10-10.0.26100-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.26100')
Python 3.11.13
Windows: ('10', '10.0.26100', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: FanFicFare (4, 48, 0) && Kobo Utilities (2, 24, 3) && KoboTouch Config Button (1, 0, 0)
Traceback (most recent call last):
File "calibre_plugins.koboutilities.action", line 234, in wrapper
File "calibre_plugins.koboutilities.features.toc", line 94, in update_book_toc_on_device
File "calibre_plugins.koboutilities.features.toc", line 299, in _get_chapter_status
File "calibre_plugins.koboutilities.features.toc", line 189, in _get_chapter_list
File "calibre_plugins.koboutilities.features.toc", line 121, in load_ebook
File "calibre\ebooks\oeb\polish\container.py", line 1232, in __init__
File "calibre\ebooks\oeb\polish\container.py", line 279, in __init__
File "calibre\ebooks\oeb\polish\container.py", line 282, in refresh_mime_map
File "calibre\ebooks\oeb\polish\container.py", line 544, in opf_xpath
File "calibre\ebooks\oeb\polish\container.py", line 649, in opf
File "calibre\ebooks\oeb\polish\container.py", line 632, in parsed
File "calibre\ebooks\oeb\polish\container.py", line 603, in parse
File "calibre\ebooks\oeb\polish\container.py", line 179, in parse_xml
File "calibre\utils\xml_parse.py", line 26, in safe_xml_fromstring
File "src/lxml/etree.pyx", line 3428, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 2059, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1914, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1930, in lxml.etree._parseDoc_unicode
File "src/lxml/parser.pxi", line 1133, in lxml.etree._BaseParser._parseUnicodeDoc
File "src/lxml/parser.pxi", line 647, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 765, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 689, in lxml.etree._raiseParseError
File "<string>", line 76
lxml.etree.XMLSyntaxError: internal error, line 76, column 52
It seems reproducible, always on the same book when "Getting ToC Status".
JonnyH is offline   Reply With Quote
Old 09-26-2025, 08:07 AM   #464
Majutsushi
Zealot
Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'
 
Posts: 122
Karma: 10128
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
Did the same book work correctly in an earlier Calibre version? The error says that Calibre can't load the book because the book itself seems to be damaged. This means that at least some of the other Calibre features that try to read the book should also fail, as long as they try to read the specific damaged file. Since that file lists the contents of the ebook it would assume it's most features. Have you tried opening it in Calibre's ebook reader?

You may be able to fix the book with Calibre's ebook editor, or depending on your source look for a fixed version.
Majutsushi is offline   Reply With Quote
Old 09-26-2025, 11:32 PM   #465
JonnyH
Junior Member
JonnyH began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2025
Device: Kobo Sage
It was a result of the lxml bug fixed in the 8.11.1 calibre hotfix
JonnyH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Kobo Utilities davidfor Plugins 3216 02-08-2025 04:23 AM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[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


All times are GMT -4. The time now is 12:03 AM.


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