Closed steeltrap closed 3 months ago
Hey, thanks for reporting the issue.
I checked the code and it seems that ExtraAnnotationData
wasn't used at all, so it has possibly been removed in the next software version. That's probably what's causing the issue.
I removed the column in this PR #5 . Would you mind checking with your device to see if it's working correctly now?
When using the script with a KoboReader.sqlite file from a Kobo Libra Colour, the program returns the following error:
Could not decode to UTF-8 column 'ExtraAnnotationData' with text ''
This is fixed by adding a single line after the sql connection is opened (current line 630):
sql_connection.text_factory = lambda b: b.decode(errors = 'ignore')
This may be bad practice (as errors are ignored) but program then functions as expected.
Thank you for a useful tool!