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 Yesterday, 03:02 PM   #1
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: 8,914
Karma: 62040409
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
KoboTouch driver & SeriesID

On Kobo devices, the SeriesID field in the content table determines which books appears in each series. KoboTouch driver never seems to update the SeriesID once it's set, both sideloads and purchased books.

Sometimes series can get split apart due to differing SeriesIDs:
  • Some publishers split up series into multiple smaller series for no good reason. If you purchase a lot of Pocket Books and load them from the store, you'll likely end up with half a dozen Star Trek series in your series tab.
  • Sideloaded books have a SeriesID set to the series name, but Kobo-loaded books have a GUID. This results in series with mixed sideloads and Kobo-loaded getting split into two separate series.

As per this thread, changing the SeriesID to all the same value (SQLite query) merges them together. I've not noticed any detrimental effects when tampering it manually, but sometimes after a sync it gets reset and splits apart again. Plus you have to do it every time you add a new book to the series.

So, my thought: Could the KoboTouch driver be modified to set the SeriesID to the series name during automatic metadata management?

Last edited by ownedbycats; Yesterday at 10:59 PM.
ownedbycats is offline   Reply With Quote
Old Yesterday, 11:48 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,075
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I am not familiar with the kobo driver, so I could be wrong, but a quick inspection of the code indicates it does update the series, see line 3339 in kobo/driver.py and line 2650
kovidgoyal is offline   Reply With Quote
Advert
Old Today, 12:02 AM   #3
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: 8,914
Karma: 62040409
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
3339:

Code:
            if series_changed or series_number_changed \
               or not kobo_series_id == series_id \
               or not kobo_series_number_float == newmi.series_index:
                update_values.append(series_id)
                set_clause.append('SeriesID')
                update_values.append(newmi.series_index)
                set_clause.append('SeriesNumberFloat')
                if show_debug:
                    debug_print(f"KoboTouch:set_core_metadata Setting SeriesID - new_series='{new_series}', series_id='{series_id}'")
The only time I ever see it update though is when the SeriesID for a newly-imported sideload is empty - upon a second connect to Calibre, it then populates with the series name.
ownedbycats is offline   Reply With Quote
Old Today, 12:17 AM   #4
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: 37,344
Karma: 149856306
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Rather odd. I just checked a series where I picked up the first book as a freebie, cleaned it up and edited it and then sent it to my Kobos. I liked the book so I picked up the next 3 books in the series from Kobo Plus. All four books show up with the same series name and the correct series number.

I checked all my Kobo and Kobo Plus books and none of them showed what looked like a GUID in the Series information.
DNSB is offline   Reply With Quote
Old Today, 12:21 AM   #5
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: 8,914
Karma: 62040409
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by DNSB View Post
I liked the book so I picked up the next 3 books in the series from Kobo Plus. All four books show up with the same series name and the correct series number.
I'm specifically referring to the SeriesID field in the content table. Try sending some of those books to the archive, then sideloading them. You'll notice the Series page now shows the series split apart into two.

The only way to merge them together (without sideloading everything) is directly edit the database to set the SeriesID field of those books so they're all the same. KoboTouch doesn't change it once it's set, nor does Kobo Utilities. (And yes, I have it set to update purchased book.)

Last edited by ownedbycats; Today at 12:29 AM.
ownedbycats is offline   Reply With Quote
Advert
Old Today, 12:31 AM   #6
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: 37,344
Karma: 149856306
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Sorry but I edit my Kobo purchases so they are sideloaded with cleaned up metadata. I don't edit Kobo Plus books due my quasi-religious opinions about them not being my property. Though as near as I can tell, when I archive a book synced from Kobo, I no longer see it on my Kobo ereader and a sideloaded edited version is treated as a new book. I did some playing with this and I can change the series name and number in calibre and it will update the information for a purchased book if I have Update purchased books enabled and I have matched books between device and calibre.

Edit: I went back and looked at when I changed the series name for Mercedes Lackey's Valdemar series books to Valdemar : Subseries_name. Once I made those changes, I used KoboUtilies update metadata tool to update the metadata on the device and the series names changed (along with a couple of numbers that were incorrect to start with).
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-07-04 213848.png
Views:	7
Size:	33.7 KB
ID:	209372   Click image for larger version

Name:	Screenshot 2024-07-04 214045.png
Views:	5
Size:	35.8 KB
ID:	209373  

Last edited by DNSB; Today at 12:42 AM. Reason: Added notes about changing series name in calibre
DNSB is offline   Reply With Quote
Old Today, 01:41 AM   #7
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: 8,914
Karma: 62040409
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
SeriesID doesn't affect that, it's behind-the-scenes and affects how the books group together on the Series page. Is possible to have books with same Series but different SeriesIDs. They'll show up as separate on the Kobo.

EDIT: Two recent acquisitions give an opportunity to demonstrate the accursed Pocket Books issue - 40 books I already set to the same SeriesID with the SQLite query, so they're a single series.

But the two other books, which I haven't merged in yet, have it set to different values (GUIDs provided by the Kobo store). So they show up as two separate series of 1 book each, even with the same name.
Attached Thumbnails
Click image for larger version

Name:	screen_002.png
Views:	18
Size:	292.5 KB
ID:	209374  

Last edited by ownedbycats; Today at 03:03 AM.
ownedbycats is offline   Reply With Quote
Old Today, 06:21 AM   #8
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,299
Karma: 12116851
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Ok, now I get Series Id. I've got a specific query that remove all the seriesid associates only to one book, so I clean the series page.
Terisa de morgan is online now   Reply With Quote
Old Today, 07:04 AM   #9
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: 11,815
Karma: 7030035
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
To repeat what you said, the problem seems to be caused by having books that are both sideloaded and not. Looking at line 3330, the SeriesID is updated only if the book is sideloaded.
Code:
        if self.supports_series_list and book.is_sideloaded:
Code:
    @property
    def is_sideloaded(self):
        # If we don't have a content Id, we don't know what type it is.
        return self.contentID and self.contentID.startswith("file")
This means that the seriesID checks aren't done so the field won't be updated.

Does the problem fix itself if you send again from calibre the non-sideloaded books? It might not if the resend doesn't change enough to cause the book to be considered sideloaded (apparently where the book is stored). If resending the book does fix it then we have a no-risk solution.

A possible fix would be to always update the series stuff, even for non-sideloaded books. I don't know why non-sideloaded books are excluded so I'm not willing to make this change without someone testing it. The change would be to (again) line 3300:
Code:
        if self.supports_series_list:
Run from source, change that line, and let us know what happens.
chaley 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 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


All times are GMT -4. The time now is 07:24 AM.


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