View Single Post
Old 06-12-2025, 11:53 AM   #10
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,456
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by chaley View Post
I'm tempted to add setting the text index using a template to the driver just to see what happens. I think the driver doesn't read/use that field (not near my computer so can't check). The change would be easier than it was to add collection management via template.
I have an implementation of this that seems to work. I added a checkbox and template to the driver config metadata tab to set the series index (text) to whatever the template returns. I tested it with sideloaded books. I don't know what it will do with purchased/downloaded books.

My Libra 2 sorts on the series index (float). The series index (text) is ignored. I tested this by setting the text to (100-series_index).

If anyone wants to try it (no guarantees!) then run from source and put these two files in src/calibre/devices/kobo.
Attached Files
File Type: py kobotouch_config.py (53.9 KB, 25 views)
File Type: py driver.py (213.2 KB, 37 views)
chaley is offline   Reply With Quote