12-05-2017, 07:28 PM | #361 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Merritt: You might try the Goodreads Sync plugin. It has a function to switch the Goodreads edition. It can also do the search for the book and assign the ID, but, it doesn't do the full metadata download. For me, I tend to let the metadata download choose the initial Goodreads id, and then later change the edition if I'm interested.
|
12-06-2017, 08:42 AM | #362 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: Android
|
@davidfor: Also a bit more tedious than a cover selector, but yes this seems to work pretty good. Change edition, search goodreads, drag link, download metadata..
Thanks! |
12-16-2017, 03:17 AM | #363 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
|
|
12-16-2017, 04:37 AM | #364 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
As this is the first time I've heard of a problem, no, there isn't a fix. If you are seeing a problem, I need some details before anything can be done. If you can give some examples of books that fail, links to a few books that have problems, plus a description of what you expect to happen and is happening. With that, I should be able to fix it.
|
12-16-2017, 04:43 AM | #365 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
|
Here's the detailed log for a book called "Une poignée de seigle" from Agatha Christie:
calibre, version 3.14.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: {u'identifiers': {}, u'authors': [u'Agatha Christie'], u'title': u'Une Poigne\u0301e De Seigle', u'timeout': 30} Using plugins: Goodreads (1, 1, 12) The log from individual plugins is below ****************************** Goodreads (1, 1, 12) ****************************** Found 0 results Downloading from Goodreads took 1.17599987984 Querying: http://www.goodreads.com/search?sear...e=books&search[query]=Une+Poigne%CC%81e+De+Seigle+Agatha+Christie no isbn response: <Element html at 0x3c1d6f0> No matches found with query: u'http://www.goodreads.com/search?search_type=books&search[query]=Une+Poigne%CC%81e+De+Seigle+Agatha+Christie' ************************************************** ****************************** The identify phase took 1.20 seconds The longest time (1.176000) was taken by: Goodreads Merging results from different sources and finding earliest publication dates from the worldcat.org service We have 0 merged results, merging took: 0.00 seconds From what I see, the plugin doesn't find the book on Goodreads despite the fact that this book exists on Goodreads (https://www.goodreads.com/book/show/...om_search=true) The same happens with all books that have accents in the title... |
12-16-2017, 06:36 AM | #366 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
I know solution.
Your letter é is build from two characters: "e" and combining acute accent (\u0301). Of course letter é should be in your title as single character. Fix your title (replace combined letter to simply é) and Goodreads work like a charm. Last edited by BeckyEbook; 12-16-2017 at 07:21 AM. |
12-16-2017, 07:41 AM | #367 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Dzib: I think BeckyEbook has the answer. Most of the metadata source plugins do two searches. The first is by ISBN, if it already exists. If it doesn't, or there is no result, then it searches by title and author. I'm not sure that adding a title only search is useful. In a case like this, it would work. But, there are a lot of common title that would produce a large set of results and the plugin will only search the first page of results.
Also, Goodreads appear to be matching the accented characters with unaccented. Searching for "Une Poignee De Seigle" works as well. |
12-16-2017, 10:05 AM | #368 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
|
Ok but how do I replace combined character to simply é ?
|
12-16-2017, 10:35 AM | #369 | |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
The normalize function in calibre.ebooks uses unicodedata.normalize('NFC') to convert unicode characters to a normalized form. Last edited by jhowell; 12-16-2017 at 10:37 AM. |
|
12-16-2017, 11:45 AM | #370 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Of course @davidfor can add fix to plugin (as suggested @jhowell).
This is great solution, thank you. I can use it in my private plugins. Works perfect. Code:
unicodedata.normalize('NFC',u'Une Poignée De Seigle Agatha Christie') Or just simple "e" (as mentioned @davidfor - the search engine in Goodreads also accepts unaccented letters). Last edited by BeckyEbook; 12-16-2017 at 11:51 AM. |
12-16-2017, 12:52 PM | #371 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
|
The problem is to do that for thousands of books
|
12-16-2017, 01:30 PM | #372 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
It will not be a problem if @davidfor improve the plugin.
To test, I added a line in the __init__.py file: Code:
import unicodedata Code:
title_tokens = list(self.get_title_tokens(unicodedata.normalize('NFC',title), |
12-17-2017, 04:18 AM | #373 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
|
Where do I have to add import unicodedata?
|
12-17-2017, 06:00 AM | #374 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
|
12-17-2017, 06:10 AM | #375 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
Tags |
goodreads, metadata |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Goodreads Sync | kiwidude | Plugins | 1722 | 04-25-2024 03:09 PM |
[Metadata Download Plugin] Goodreads Metadata **Deprecated** | kiwidude | Plugins | 30 | 04-23-2011 02:10 PM |
[Covers Plugin] Goodreads Covers **Deprecated** | kiwidude | Plugins | 13 | 04-17-2011 05:09 PM |
metadata plugin | redneck_momma | Plugins | 1 | 05-21-2010 08:41 PM |