Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2017, 07:28 PM   #361
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,908
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.
davidfor is offline   Reply With Quote
Old 12-06-2017, 08:42 AM   #362
Merritt
Junior Member
Merritt began at the beginning.
 
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!
Merritt is offline   Reply With Quote
Old 12-16-2017, 03:17 AM   #363
Dzib
Member
Dzib began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
Quote:
Originally Posted by kiwidude View Post
Changes in this release:
  • Fix to ensure non ascii author names are parsed correctly.
Looks like the plugin doesn't download tags for books that avec accents in the title. There's a fix ?
Dzib is offline   Reply With Quote
Old 12-16-2017, 04:37 AM   #364
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,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Dzib View Post
Looks like the plugin doesn't download tags for books that avec accents in the title. There's a fix ?
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.
davidfor is offline   Reply With Quote
Old 12-16-2017, 04:43 AM   #365
Dzib
Member
Dzib began at the beginning.
 
Posts: 20
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...
Dzib is offline   Reply With Quote
Old 12-16-2017, 06:36 AM   #366
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 664
Karma: 2180702
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
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.
BeckyEbook is offline   Reply With Quote
Old 12-16-2017, 07:41 AM   #367
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,908
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.
davidfor is offline   Reply With Quote
Old 12-16-2017, 10:05 AM   #368
Dzib
Member
Dzib began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
Ok but how do I replace combined character to simply é ?
Dzib is offline   Reply With Quote
Old 12-16-2017, 10:35 AM   #369
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,470
Karma: 84000001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by BeckyEbook View Post
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.
calibre has a function that can be used by plugins to do this automatically.

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.
jhowell is offline   Reply With Quote
Old 12-16-2017, 11:45 AM   #370
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 664
Karma: 2180702
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
Quote:
Originally Posted by Dzib View Post
Ok but how do I replace combined character to simply é ?
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')
@Dzib: If this problem is only in one case – just select "bad" letter and paste correct. If you have French keyboard in your system, simply press the appropriate key or combination of keys.

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.
BeckyEbook is offline   Reply With Quote
Old 12-16-2017, 12:52 PM   #371
Dzib
Member
Dzib began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
The problem is to do that for thousands of books
Dzib is offline   Reply With Quote
Old 12-16-2017, 01:30 PM   #372
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 664
Karma: 2180702
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
Quote:
Originally Posted by Dzib View Post
The problem is to do that for thousands of books
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
And line 61:
Code:
            title_tokens = list(self.get_title_tokens(unicodedata.normalize('NFC',title),
After these changes everything works (I hope).
BeckyEbook is offline   Reply With Quote
Old 12-17-2017, 04:18 AM   #373
Dzib
Member
Dzib began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
Where do I have to add import unicodedata?
Dzib is offline   Reply With Quote
Old 12-17-2017, 06:00 AM   #374
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 664
Karma: 2180702
Join Date: Jan 2017
Location: Poland
Device: Kindle (Key3, PW2, PW3), Nook (ST, GLP), Kobo Touch, Tolino Vision 2
Quote:
Originally Posted by Dzib View Post
Where do I have to add import unicodedata?
At the beginning of the file, right after "import time"
BeckyEbook is offline   Reply With Quote
Old 12-17-2017, 06:10 AM   #375
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by BeckyEbook View Post
At the beginning of the file, right after "import time"
Thanks for investigating this request. Feel free to update the plugin. The original creator is no longer active.
DoctorOhh is offline   Reply With Quote
Reply

Tags
goodreads, metadata

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Goodreads Sync kiwidude Plugins 1713 03-16-2024 11:37 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


All times are GMT -4. The time now is 01:24 AM.


MobileRead.com is a privately owned, operated and funded community.