![]() |
#16 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,206
Karma: 63194629
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.
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,908
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#18 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,908
Karma: 7076137
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 10:05 AM. Reason: Added the file name |
![]() |
![]() |
![]() |
#19 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,206
Karma: 63194629
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!
![]() |
![]() |
![]() |
![]() |
#20 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,908
Karma: 7076137
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 10:04 AM. Reason: Typo |
|
![]() |
![]() |
![]() |
#21 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,932
Karma: 153006036
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. |
![]() |
![]() |
![]() |
#22 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,908
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#23 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,206
Karma: 63194629
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.
|
![]() |
![]() |
![]() |
#24 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,932
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#25 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,206
Karma: 63194629
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Did you sideload with Calibre or another method?
|
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,908
Karma: 7076137
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. |
|
![]() |
![]() |
![]() |
#27 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,206
Karma: 63194629
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Last edited by ownedbycats; 07-06-2024 at 04:51 AM. Reason: to add a link |
|
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,908
Karma: 7076137
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. |
![]() |
![]() |
![]() |
#29 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,908
Karma: 7076137
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 12:45 PM. |
![]() |
![]() |
![]() |
#30 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,325
Karma: 12117215
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Easiest method for bulk-setting SeriesID | ownedbycats | Kobo Reader | 25 | 06-27-2024 04:45 AM |
Bug with Subtitle in KoboTouch Driver 2.5.1 | JSWolf | Devices | 2 | 01-01-2021 09:35 AM |
[Device Plugin]KoboTouch driver for calibre 1.48 | davidfor | Plugins | 4 | 12-27-2015 06:03 AM |
USBNetwork USB Driver & Telnet on Windows XP SP3 | namati | Kindle Developer's Corner | 0 | 02-24-2012 01:20 AM |
PRS-500 driver & frimware | AVIV2007 | Sony Reader | 4 | 10-06-2011 02:57 PM |