07-05-2024, 09:55 AM | #16 |
Custom User Title
Posts: 9,545
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Calibre just silently fails to start if I install the code from #15. Works if I revert to the original. Odd.
|
07-05-2024, 09:58 AM | #17 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
Advert | |
|
07-05-2024, 10:01 AM | #18 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Here is the entire driver.py file. It runs for me. It is calibre/devices/kobo/driver.py.
Last edited by chaley; 07-05-2024 at 11:05 AM. Reason: Added the file name |
07-05-2024, 10:11 AM | #19 |
Custom User Title
Posts: 9,545
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I got it working - I left in an accidental extra space I think. And the SeriesID changed!
|
07-05-2024, 10:27 AM | #20 | |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Could you (and anyone else willing to check) run this for a while to check for unintended consequences? If nothing bad is reported over the next few days I will submit it to Kovid. Last edited by chaley; 07-05-2024 at 11:04 AM. Reason: Typo |
|
Advert | |
|
07-05-2024, 04:59 PM | #21 |
Bibliophagist
Posts: 40,536
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
After installing the updated driver.py, in the limited testing I've done, I haven't seen any issues. OTOH, the SeriesID for books from Kobo that I have not imported to calibre will still have the GUID looking SeriesID even after metadata update plus one series that I just sideloaded shows the GUID SeriesID field. This is not the same as the series/series number field.
The only way I got rid of the GUID SeriesIDs was to copy the Series field to the SeriesID field. |
07-05-2024, 08:22 PM | #22 | ||
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
07-05-2024, 08:55 PM | #23 |
Custom User Title
Posts: 9,545
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
FWIW, if it's the Kobo Plus books you've mentioned earlier, you can create dummy entries with the metadata but not actual format and match to the book on device. I do this for Overdrive loans.
|
07-05-2024, 11:41 PM | #24 | |
Bibliophagist
Posts: 40,536
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
07-06-2024, 12:09 AM | #25 |
Custom User Title
Posts: 9,545
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Did you sideload with Calibre or another method?
|
07-06-2024, 05:05 AM | #26 | |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If I am understanding the code correctly, the SeriesID on sideloaded books is updated only if the series changes. It also tries to use the existing UUID-style seriesID if some non-sideloaded book on the device has one like that. The driver goes to some lengths to ensure this is true. My changes undid some of those efforts but not all. I'm tempted to always set the SeriesID to the series name, but as before I don't know what that might break. I'm fairly sure that for a purchased set of books in a series, if some are in calibre and some aren't then the seriesID will be changed in only some of them. This is also probably true with the current changes. |
|
07-06-2024, 05:49 AM | #27 | |
Custom User Title
Posts: 9,545
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Last edited by ownedbycats; 07-06-2024 at 05:51 AM. Reason: to add a link |
|
07-06-2024, 08:59 AM | #28 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
These changes make me nervous because I don't know why @davidfor did it the way he did. There might be some very good underlying reason for it.
Instead of making these changes I will add a new option to the driver that tells it to set SeriesID to Series if series data is being managed. |
07-06-2024, 01:24 PM | #29 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Attached are files driver.py and kobotouch_config.py. These together implement the new option I discussed in the previous post. These files go in calibre/devices/kobo/
I tested it with the following steps:
Please let me know if you try these. If you try them, check the option tooltip and how checking/unchecking behaves. Also (of course) check if it works, changing the SeriesID as desired. I will submit them to Kovid in a few days unless I hear that I shouldn't. EDIT: @ownedbycats: these changes do what your SQL query does, albeit somewhat differently for technical reasons. Last edited by chaley; 07-06-2024 at 01:45 PM. |
07-06-2024, 01:42 PM | #30 | |
Grand Sorcerer
Posts: 6,393
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Easiest method for bulk-setting SeriesID | ownedbycats | Kobo Reader | 25 | 06-27-2024 05:45 AM |
Bug with Subtitle in KoboTouch Driver 2.5.1 | JSWolf | Devices | 2 | 01-01-2021 10:35 AM |
[Device Plugin]KoboTouch driver for calibre 1.48 | davidfor | Plugins | 4 | 12-27-2015 07:03 AM |
USBNetwork USB Driver & Telnet on Windows XP SP3 | namati | Kindle Developer's Corner | 0 | 02-24-2012 02:20 AM |
PRS-500 driver & frimware | AVIV2007 | Sony Reader | 4 | 10-06-2011 03:57 PM |