View Single Post
Old 10-22-2017, 01:58 AM   #429
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by dsestero View Post
Hi David,

I would like to ask you to have a look at the attached log before making the release. Since the latest betas I thought the plugin works fine but yestarday I tried to fetch the annotations from a recently added book downloaded from Amazon and then added to the Calibre library. It is in kfx format. May be because of the inversion of first/last author name it did not get matched, so I synchronized it in the way you explained to me. You can see in the attached screenshot it is matched now. I then restarted Calibre in debug mode.
Looking at the log I can't understand why the book seems to be recognized, yet when the annotations are found no associated book is found. I attached also the fragment of the MyClippings file.
Do you have an idea why is it happening?
The following entries in the log are the relevant ones:

Code:
DEBUG:   54.2  resolve_paths. id=505, path=/<storage>/Nhat Hanh, Thich/Lettera d'amore alla Madre Terra (Italian Edition) - Nhat Hanh, Thich.bookmark
DEBUG:   54.2  resolve_paths. fmt=[u'azw3', u'kfx']
DEBUG:   54.2  resolve_paths. fmt=[u'azw3', u'kfx']
DEBUG:   54.2  resolve_paths. looking for book on device: book_path=/Volumes/Kindle/documents/Nhat Hanh, Thich/Lettera d'amore alla Madre Terra (Italian Edition) - Nhat Hanh, Thich.bookmark
DEBUG:   54.2  resolve_paths. looking for book on device: this_fmt=/Volumes/Kindle/documents/Nhat Hanh, Thich/Lettera d'amore alla Madre Terra (Italian Edition) - Nhat Hanh, Thich.kfx
DEBUG:   54.2  resolve_paths. looking for book on device: this_fmt=/Volumes/Kindle/documents/Nhat Hanh, Thich/Lettera d'amore alla Madre Terra (Italian Edition) - Nhat Hanh, Thich.azw3

DEBUG:   64.3      Have possible book with path=/Volumes/Kindle/documents/Lettera d'amore alla Madre Terra_B018EMPPCI.kfx

DEBUG:   65.3  Book on device title: 'Lettera d’amore alla Madre Terra'

DEBUG:   74.7    Annotation for Title=='Lettera d'amore alla Madre Terra (Italian Edition)'
DEBUG:   74.7      Title not found in books on device
DEBUG:   74.7    Annotation for Title=='Lettera d'amore alla Madre Terra (Italian Edition)'
DEBUG:   74.7      Title not found in books on device
DEBUG:   74.7    Annotation for Title=='Lettera d'amore alla Madre Terra (Italian Edition)'
DEBUG:   74.7      Title not found in books on device
DEBUG:   74.7    Annotation for Title=='Lettera d'amore alla Madre Terra (Italian Edition)'
DEBUG:   74.7      Title not found in books on device
DEBUG:   74.7    Annotation for Title=='Lettera d'amore alla Madre Terra (Italian Edition)'
DEBUG:   74.7      Title not found in books on device
The title in the clippings file is "Lettera d'amore alla Madre Terra (Italian Edition)". The title in the books metadata is "Lettera d’amore alla Madre Terra". The plugin is does a first match using the title. That isn't matching, so it doesn't go to the next step with these annotations. So, the version of the book you made the annotations against has "(Italian Edition)", but the version you sent from calibre doesn't. A test of this would be to edit the clippings file and remove the "(Italian Edition)" from the title.
davidfor is offline   Reply With Quote