View Single Post
Old 12-29-2023, 12:51 PM   #64
gguigui
Member
gguigui began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2020
Device: Kobo Libra 2 and Clara HD
Just tried using the plugin, and I've noticed several things while playing around with the extension:

1. An option to change language would be useful, same as with the country. If I'm looking up a book without using the ISBN, the query for a book in French returns the correct result if done in French, and a wrong result if done in English.

Quote:
https://www.kobo.com/fr/en/search?query=L%27%C3%89p%C3%A9e+de+la+providence+A ndrzej+Sapkowski
vs
Quote:
https://www.kobo.com/fr/fr/search?query=L%27%C3%89p%C3%A9e+de+la+providence+A ndrzej+Sapkowski
2. Adding "&fcmedia=Book" at the end of the query might also help, to avoid any possibility of fetching an audiobook metadata.

3. If title, author and ISBN are present in Calibre, the search only uses the ISBN. If the ISBN is wrong, then the result is either no metadata fetched from Kobo (if the ISBN doesn't match anything) or the wrong metadata is fetched. Could it be possible to have a fallback mechanism in case the ISBN returns no match? For the second case (wrong metadata fetched because of correct title/author but wrong ISBN), maybe returning both options so we could pick one?

4. I've got a failure when looking up specific books. Not sure how to interpret the log, but it seems to me like the metadata is read from Kobo, but then not written.

Quote:
calibre, version 7.2.0
ERREUR : Aucune correspondance trouvée: <p>Impossible de trouver un livre correspondant à votre recherche. Essayer de faire une recherche <b>moins spécifique</b>. Par exemple, utiliser seulement le nom de famille de l'auteur et un mot distinctif du titre.<p> Pour voir le journal en entier, cliquer "Afficher les détails.

Running identify query with parameters:
{'title': None, 'authors': None, 'identifiers': {'isbn': '9782820507099'}, 'timeout': 30}
Using plugins: Kobo Metadata (1, 2, 1)
The log from individual plugins is below

****************************** Kobo Metadata (1, 2, 1) ******************************
Found 0 results
Downloading from Kobo Metadata took 4.8386969566345215
KoboMetadata::identify: title: None, authors: None, identifiers: {'isbn': '9782820507099'}
KoboMetadata::identify: Getting metadata with isbn: 9782820507099
KoboMetadata::identify: Looking up metadata with url: https://www.kobo.com/ca/en/search?query=9782820507099
KoboMetadata::_lookup_metadata: Got title: The Witcher : L'Épée de la providence
KoboMetadata::_lookup_metadata: Got authors: ['Andrzej Sapkowski']
KoboMetadata::_lookup_metadata: Got publisher: Bragelonne
KoboMetadata::_lookup_metadata: Got pubdate: 2012-10-12 00:00:00+00:00
KoboMetadata::_lookup_metadata: Got isbn: 9782820507099
KoboMetadata::_lookup_metadata: Got language: French
KoboMetadata::_lookup_metadata: Got tags: {'Science Fiction & Fantasy', 'Fantasy'}
KoboMetadata::_lookup_metadata: Got comments: b'<div class="synopsis-description" translate="no"><p><strong>Les romans à l\'origine de la série The Witcher !</strong></p>\n<p>Geralt de Riv n’en a pas fini avec sa vie errante de tueur de monstres. Fidèle aux règles de la corporation maudite des sorceleurs, Geralt assume sa mission sans faillir dans un monde hostile et corrompu qui ne laisse aucune place à l’espoir. Mais la rencontre avec la petite Ciri, l’Enfant élue, va donner un sens nouveau à l’existence de ce héros solitaire.</p>\n<p>Geralt cessera-t-il enfin de fuir devant la mort pour affronter la providence et percer à jour son véritable destin ?</p>\n</div> \r\n '
KoboMetadata::_lookup_metadata: Got cover: https://cdn.kobo.com/book-images/ccb...providence.jpg
KoboMetadata::_check_title_blacklist: blacklisted title words: {''}
KoboMetadata::_lookup_metadata: Hit blacklisted word(s) in the title: {''}
KoboMetadata::identify:: Could not find matching book

************************************************** ******************************
The identify phase took 5.01 seconds
The longest time (4.838697) was taken by: Kobo Metadata
Merging results from different sources
We have 0 merged results, merging took: 0.00 seconds
After several trials, I'm fairly certain this only happens with books in series.
The one difference between a failed and successful attempt is this line, despite my blacklist being empty:
Quote:
KoboMetadata::_lookup_metadata: Hit blacklisted word(s) in the title: {''}
Edit: I was wrong, it does not happen only with series. Example here:
Quote:
calibre, version 7.3.0

Running identify query with parameters:
{'title': 'La verticale de la peur', 'authors': ['Gilles Favarel-Garrigues'], 'identifiers': {'isbn': '9782348077333', 'amazon_fr': '2348077329', 'google': 'URvgzwEACAAJ'}, 'timeout': 30}
Using plugins: Kobo Metadata (1, 2, 1)
The log from individual plugins is below

****************************** Kobo Metadata (1, 2, 1) ******************************
Found 0 results
Downloading from Kobo Metadata took 0.762650728225708
KoboMetadata::identify: title: La verticale de la peur, authors: ['Gilles Favarel-Garrigues'], identifiers: {'isbn': '9782348077333', 'amazon_fr': '2348077329', 'google': 'URvgzwEACAAJ'}
KoboMetadata::identify: Getting metadata with isbn: 9782348077333
KoboMetadata::identify: Looking up metadata with url: https://www.kobo.com/fr/en/search?query=9782348077333
KoboMetadata::_lookup_metadata: Got title: La verticale de la peur - Ordre et allegeance en Russie poutinienne
KoboMetadata::_lookup_metadata: Got authors: ['Gilles Favarel-Garrigues']
KoboMetadata::_lookup_metadata: Got publisher: La Découverte
KoboMetadata::_lookup_metadata: Got pubdate: 2023-03-16 00:00:00+00:00
KoboMetadata::_lookup_metadata: Got isbn: 9782348077333
KoboMetadata::_lookup_metadata: Got language: French
KoboMetadata::_lookup_metadata: Got tags: {'Nonfiction', 'Social & Cultural Studies', 'Political Science', 'Social Science'}
KoboMetadata::_lookup_metadata: Got comments: b'<div class="synopsis-description" translate="no"><p>L\'invasion de l\'Ukraine rappelle que la peur est un pilier de la géopolitique poutinienne. Mais son emprise s\'exerce aussi à l\'intérieur de la société russe, où elle assure l\'allégeance au régime de la classe dirigeante et d\'une partie de la population.<br>\nCet ouvrage met à nu la spirale d\'autoritarisme qui, bien au-delà des murs du Kremlin, se déploie à tous les niveaux de la structure sociale. Il montre comment le maintien des élites dans une insécurité permanente cimente l\'ordre politique autour d\'une improbable " dictature de la loi ", appliquée par des maîtres chanteurs, des professionnels du scandale, des hérauts médiatiques et des juges obéissants. Il analyse la manière dont, au cœur de la société, une incessante demande d\'intransigeance à l\'égard de menaces agitées en tous sens légitime la surenchère punitive et les initiatives justicières. Il donne enfin à voir le repli sur soi du pays, encouragé par le façonnement aussi politique que médiatique de figures de traîtres et d\'ennemis, accusés de saper la puissance russe, voire de subvertir l\'ordre moral.<br>\nNourri par vingt ans d\'enquête, ce livre explore l\'ancrage politique et social du poutinisme. Il offre des clés inédites pour comprendre comment un pouvoir aussi délétère perdure et, peut-être aussi, pourquoi il nous sidère.</p>\n</div> \r\n '
KoboMetadata::_lookup_metadata: Got cover: https://cdn.kobo.com/book-images/c1b...outinienne.jpg
KoboMetadata::_check_title_blacklist: blacklisted title words: {''}
KoboMetadata::_lookup_metadata: Hit blacklisted word(s) in the title: {''}
KoboMetadata::identify:: Could not find matching book

Last edited by gguigui; 01-06-2024 at 03:08 PM.
gguigui is offline   Reply With Quote