Hi, I'm having some trouble getting the ToC updated on my Kobo Libra H2O. The plugin worked great to add the series metadata, so thanks for that :) Something about the ToC update process makes everything fall over, though. When the plugin finishes scanning through the books on my reader, it (correctly) notes that all of them need ToC updates. However, after running a few, I'll get the following error thrown:
Code:
calibre, version 6.17.0
ERROR: Unhandled exception: <b>TypeError</b>:tuple indices must be integers or slices, not str
calibre 6.17 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Kobo Utilities (2, 16, 6)
Traceback (most recent call last):
File "calibre_plugins.koboutilities.action", line 5390, in update_book_toc_on_device
File "calibre_plugins.koboutilities.action", line 5818, in update_device_toc_for_books
File "calibre_plugins.koboutilities.action", line 5833, in update_device_toc_for_book
File "calibre_plugins.koboutilities.action", line 5864, in getDatabaseChapterId
TypeError: tuple indices must be integers or slices, not str
After this, I have to close calibre and disconnect/reconnect my reader before it'll do anything useful again (it just promptly throws the error otherwise). I've tried using a smaller subset of books, maybe 10 to 50, but sometimes it'll, sometimes it'll crash.
I have no idea what this means, is there a suggested fix?