Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-05-2024, 09:55 AM   #16
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats is online now   Reply With Quote
Old 07-05-2024, 09:58 AM   #17
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,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Calibre just silently fails to start if I install the code from #15. Works if I revert to the original. Odd.
If you run in debug mode it should tell you what the problem is. I suspect tabs vs spaces for the indents.
chaley is offline   Reply With Quote
Advert
Old 07-05-2024, 10:01 AM   #18
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,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.
Attached Files
File Type: zip driver.zip (42.2 KB, 225 views)

Last edited by chaley; 07-05-2024 at 11:05 AM. Reason: Added the file name
chaley is offline   Reply With Quote
Old 07-05-2024, 10:11 AM   #19
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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!
ownedbycats is online now   Reply With Quote
Old 07-05-2024, 10:27 AM   #20
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,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I got it working - I left in an accidental extra space I think. And the SeriesID changed!
Good!

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
chaley is offline   Reply With Quote
Advert
Old 07-05-2024, 04:59 PM   #21
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: 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.
DNSB is offline   Reply With Quote
Old 07-05-2024, 08:22 PM   #22
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,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
After installing the updated driver.py, in the limited testing I've done, I haven't seen any issues.
Thanks for testing.
Quote:
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.
Metadata update happens only for books in your calibre library. Books on the device but not in the library don't have any metadata updated.
chaley is offline   Reply With Quote
Old 07-05-2024, 08:55 PM   #23
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats is online now   Reply With Quote
Old 07-05-2024, 11:41 PM   #24
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: 40,536
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by DNSB View Post
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.
Quote:
Originally Posted by chaley View Post
Thanks for testing.
Metadata update happens only for books in your calibre library. Books on the device but not in the library don't have any metadata updated.
The series that showed up with the GUID was sideloaded since it was purchased from the author's site when they had a sale on.
DNSB is offline   Reply With Quote
Old 07-06-2024, 12:09 AM   #25
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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?
ownedbycats is online now   Reply With Quote
Old 07-06-2024, 05:05 AM   #26
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,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
The series that showed up with the GUID was sideloaded since it was purchased from the author's site when they had a sale on.
Is the book in calibre as well as sideloaded on the device? If so:
  • Does it show as "On Device" when you connect the Kobo to calibre?
  • Did you use the calibre 2-step method to set the series or something else like Nickle Series?
Kobo Utilities has a "Manage Series Information in device library" action. Does this fix the SeriesID?

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.
chaley is offline   Reply With Quote
Old 07-06-2024, 05:49 AM   #27
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,545
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by chaley View Post
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.
For what it matters, that's what I'd been doing with the SQLite query. I haven't noticed any detrimental effects, but I've been using it only around a month.

Last edited by ownedbycats; 07-06-2024 at 05:51 AM. Reason: to add a link
ownedbycats is online now   Reply With Quote
Old 07-06-2024, 08:59 AM   #28
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,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.
chaley is offline   Reply With Quote
Old 07-06-2024, 01:24 PM   #29
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,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:
  • Leave the option unchecked (the default), connecting, and disconnecting. Nothing broke as far as I can tell.
  • Connect, then change database on the device so that the SeriesID for one book in a series is different. Disconnect. My Libra 2 now shows the series twice.
  • Check the "force" option.
  • Connect and disconnect.
  • Looking at the database on the device, the SeriesID for the book changed above was changed back.
  • My Libra 2 now shows the series once.

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.
Attached Files
File Type: zip kobotouch_config.zip (7.3 KB, 224 views)
File Type: zip driver.zip (42.2 KB, 212 views)

Last edited by chaley; 07-06-2024 at 01:45 PM.
chaley is offline   Reply With Quote
Old 07-06-2024, 01:42 PM   #30
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
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:
Originally Posted by chaley View Post
Is the book in calibre as well as sideloaded on the device? If so:
  • Does it show as "On Device" when you connect the Kobo to calibre?
  • Did you use the calibre 2-step method to set the series or something else like Nickle Series?
Kobo Utilities has a "Manage Series Information in device library" action. Does this fix the SeriesID?

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.
In some cases, David did in some way and he didn't change it because he wasn't interested in the changes (I know, I asked for a couple of them )
Terisa de morgan is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 08:48 PM.


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