![]() |
#3196 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,274
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Here, better: https://www.mobileread.com/forums/sh...postcount=2965
|
![]() |
![]() |
#3197 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jan 2025
Device: kobo glo hd
|
Sorry I was perhaps unclear. I tried your suggestion (ie changing device profile - it was already set to my device so i changed to any device and then back again).
I also tried a custom colum with #precentread but that made no difference |
![]() |
Advert | |
|
![]() |
#3198 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jan 2025
Device: kobo glo hd
|
I see the dialog Devices (the link you shared above) is quite different from what I see. I think perhaps firmware updates were removed from plugin. However, 'FW Version' and 'Status' columns for my device are both blank.
|
![]() |
![]() |
#3199 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,274
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yes, this was earlier version. Firmware updates werent working right so they were replaced with link.
|
![]() |
![]() |
#3200 | ||||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,314
Karma: 165170674
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
Quote:
Quote:
I'm attaching images of my Kobo Utilities customization for Profiles and Devices pages. |
||||
![]() |
Advert | |
|
![]() |
#3201 | ||
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jan 2025
Device: kobo glo hd
|
Quote:
Quote:
|
||
![]() |
![]() |
#3202 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,355
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Did you get it from the main calibre website or someplace else? |
|
![]() |
![]() |
#3203 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jan 2025
Device: kobo glo hd
|
yeah i don't know where that came from. Anyway, i blitzed my install and database and let calibre plod it's way through a few tens thousands books to regenerate db. Kobo Utils plugin now works. I've lost all my previous 'bookmarks' but hey.
It may have been my preference for portable apps. I read somewhere that i could download the latest calibre MSI installer and point it at my portable install and it would know what to do. Maybe I misunderstood. Anyway, I found I had settings files all over the place including in AppData folder; so obviously it was no longer portable. I had a period of head scratching having read that I should click on Library icon to regenerate database. Nowhere does it mention that that particular function is not available while your device is connected in Calibre. FWIW. If I were to make a suggestion, I would separate ebook metadata completely from Calibre settings. Thanks for your time guys (girls). |
![]() |
![]() |
#3204 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,274
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
#3205 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jan 2025
Device: kobo glo hd
|
so how come when i removed all settings files except metadata.db did i get a lot of plugin data remaining. Sure, you could argue it's ebook metadata, but it's pretty useless without the plugin
|
![]() |
![]() |
#3206 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,274
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Because the plugin data is stored inside metadata.db. It's per-library settings.
|
![]() |
![]() |
#3207 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jan 2025
Device: kobo glo hd
|
Plugin *Kindle Utilities* was no longer working. At least, the **read percentage** column was not updating. Data previous to latest Calibre install were still there.
Asked what I might do in [Calibre forum](https://www.mobileread.com/forums/sh...postcount=3203) but no effective suggestions. Noticed that my once *portable* calibre had a some stage become non-portable: settings files had migrated to [AppData](file://c:/Users/tom/AppData/Roaming/calibre). I did read somewhere that a portable install can be updated by using general installer and pointing it at the portable dir. It will know what to do. Maybe not. Blitzed the install and did a fresh install. The existing [metadata.db](file://d:/docs/language/ebooks/calibre-library/metadata.db) contained references to old plugin data. Didn't want this so removed it and got Calibre to crawl through existing [calibre-library](file://d:/docs/language/ebooks/calibre-library) and regenerate database. This took several hours. I've lost all the settings etc that took many hours to configure, including all plugins. But most of that was just faffing around. However, installed *Kobo Utilities* and it works again. But, the reason this all started, *Kobo Utitilities* **percentage read** function was useful and I was disappointed to have lost the data. A day later, browsed the old database backup using [DB Browser for SQLite](https://sqlitebrowser.org/) and realised all the data was there: what I needed at least. Though book ids had changed from old to new database, the titles would be enough to get at the ids in the new database. With help from ChatGPT: ### 1. Got **percent read** from old db incl **title** and **author** ```sql SELECT books.title,books.author_sort,custom_column_3.valu e,custom_column_3.id FROM books JOIN custom_column_3 ON books.id = custom_column_3.book; ``` This returned e.g. ```tsv Kitchen Confidential Deluxe Edition: Adventures in the Culinary Underbelly Bourdain, Anthony 100 4 Big Trouble Barry, Dave 100 6 Black Coffee Christie, Agatha 100 9 The Bottle Factory Outing Bainbridge, Beryl 100 36 Mother Land Theroux, Paul 100 46 Easily Distracted Coogan, Steve 100 48 Marching Powder Young, Rusty 100 50 ``` The final value was unnecessary. As was the author. ### 2. Got book id from new db via title from above query. The results also include the **percentage read** from previous results, hard-coded into query. ``` SELECT books.id, books.title, authors.name AS author, CASE books.title WHEN 'Kitchen Confidential Deluxe Edition: Adventures in the Culinary Underbelly' THEN 4 WHEN 'Big Trouble' THEN 6 WHEN 'Black Coffee' THEN 9 WHEN 'The Bottle Factory Outing' THEN 36 WHEN 'Mother Land' THEN 46 END AS num FROM books JOIN books_authors_link ON books.id = books_authors_link.book JOIN authors ON books_authors_link.author = authors.id WHERE books.title IN ( 'Kitchen Confidential Deluxe Edition: Adventures in the Culinary Underbelly', 'Big Trouble', 'Black Coffee', 'The Bottle Factory Outing', 'Mother Land' ); ``` Results are like: ```tsv 97 Kitchen Confidential Deluxe Edition: Adventures in the Culinary Underbelly Anthony Bourdain 100 103 The Lord of the Rings 1 - The Fellowship of the Ring J. R. R. Tolkien 100 145 Five Little Pigs Agatha Christie 100 192 The Lord of the Rings 2 - The Two Towers J. R. R. Tolkien 100 ``` Again, the author was unnecessary inasmuch not needed in subsequent queries; although it was useful seeing who the author of a particular entry was. The results contained duplicate entries, that is, duplicate book ids. Seems it returned same book id where book had multiple authors. ### 3. Removed duplicate ids. First print duplicate entries (i.e. with same ids) awk -F'\t' '{count[$1]++; lines[$1] = lines[$1] ORS $0} END {for (id in count) if (count[id] > 1) print lines[id]}' yourfile.tsv Remove duplicate entries (with same ids) retaining first found awk -F'\t' '!seen[$1]++' yourfile.tsv ### 4. Test that returned ids (from step 2) are actually the book we want ```sql SELECT books.id, books.title FROM books WHERE books.id = 97; -- Replace ? with the actual ID value ``` Result e.g.: 97 Kitchen Confidential Deluxe Edition: Adventures in the Culinary Underbelly ### 5. finnese results from step 2 to just **percentage read** and **book id**, e.g. ``` 103 100 145 100 192 100 231 100 ``` ### 6. Turn this list into SQL statements ```sql INSERT INTO custom_column_2 (book, value) SELECT 6441, 100 WHERE NOT EXISTS (SELECT 1 FROM custom_column_2 WHERE book = 6441); INSERT INTO custom_column_2 (book, value) SELECT 97, 100 WHERE NOT EXISTS (SELECT 1 FROM custom_column_2 WHERE book = 97); ``` ### 7. Make a backup of Calibre db in case something goes wrong. ### 8. Open Calibre db in DB Browser and run SQL statements from step 5. ### 9. Open Calibre and check results. Everything seems good. Ran Library check. Nothing wrong found. However, old db is still around just in case. |
![]() |
![]() |
#3208 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,274
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Note that ChatGPT also gave somebody instructions that destroyed their library. Don't rely on it.
|
![]() |
![]() |
#3209 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,749
Karma: 59473090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Or a Kobo PI to work with a Kindle? Are you in the wrong forum section? |
|
![]() |
![]() |
#3210 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,314
Karma: 165170674
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
Tags |
calibre, kobo, kobo utilities, kobo-utilities, plugins |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |