Good job David, we are getting closer.
As you can see from attached screenshot, now the plugin finds more annotated books. For example, it now finds KFX books downloaded from Amazon.
Yet, some annotated books are not found. I can't understand, for example, why it don't find the annotated book 'Ecologia affettiva' that I sideloaded from Calibre to the device in plain AZW3. It has a lot of annotations, as you can see from the MyClippings.txt that I have uploaded in a previous post.
Furthermore, it seems that selecting more than a book yelds an error and no annotation get fetched. I tried to select 7 out of the 9 green titles and push the button 'Fetch annotations' than I got the following error:
Code:
calibre, version 3.8.0
Errore recuperando le annotazioni: <p>Non sono in grado di recuperare annotazioni da Amazon Kindle.</p>
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 300, in fetch_device_annotations
File "calibre_plugins.annotations.action", line 1021, in process_selected_books
File "calibre_plugins.annotations.action", line 157, in add_annotations_to_calibre
File "calibre_plugins.annotations.annotations", line 251, in merge_annotations
File "calibre_plugins.annotations.annotations_db", line 241, in capture_content
TypeError: 'NoneType' object has no attribute '__getitem__'
and the log is attached.
Thanks for your commitment, ciao
Dario