Search metadata fails

Bug #1403677 reported by dankom on 2014-12-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre version: 2.12
Operating system: Windows 7 Pro

If the title of the book contains an apostrophe (& apos.) the metadata search fails (most of the times).
In Italian language use the apostrophe is frequent.

An example:
After the fail logged below, I tried the same query removing the apostrophe ( u'title': u"Antisemitismo", u'authors': [u'Sartre, Jean-Paul'] ) and it finished successful.

calibre, version 2.12.0
ERRORE: Nessuna corrispondenza trovata: <p>Impossibile trovare un libro che soddisfi la tua ricerca. Prova rendendo la ricerca <b>meno specifica</b>. Ad esempio, usa solo il cognome dell'autore ed una singola parola distintiva del titolo.<p>Per vedere l'intero registro, fai clic su Mostra dettagli.

Running identify query with parameters:
{u'identifiers': {}, u'timeout': 30, u'title': u"L'Antisemitismo", u'authors': [u'Sartre, Jean-Paul']}
Using plugins: Google, Amazon.com, ISBNDB
The log from individual plugins is below

****************************** ISBNDB ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 6.2; rv:9.0.1) Gecko/20100101 Firefox/9.0.1')]
Found 0 results
Downloading from ISBNDB took 0.456000089645
Failed to make query to ISBNDb, aborting.
Traceback (most recent call last):
  File "site-packages\calibre\ebooks\metadata\sources\isbndb.py", line 106, in identify
  File "site-packages\calibre\ebooks\metadata\sources\isbndb.py", line 213, in make_query
  File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src\lxml\lxml.etree.c:68121)
  File "parser.pxi", line 1786, in lxml.etree._parseMemoryDocument (src\lxml\lxml.etree.c:102470)
  File "parser.pxi", line 1667, in lxml.etree._parseDoc (src\lxml\lxml.etree.c:101229)
  File "parser.pxi", line 1035, in lxml.etree._BaseParser._parseUnicodeDoc (src\lxml\lxml.etree.c:96139)
  File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src\lxml\lxml.etree.c:91290)
  File "parser.pxi", line 683, in lxml.etree._handleParseResult (src\lxml\lxml.etree.c:92476)
  File "parser.pxi", line 633, in lxml.etree._raiseParseError (src\lxml\lxml.etree.c:91939)
XMLSyntaxError: None

********************************************************************************

****************************** Amazon.com ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3')]
Found 0 results
Downloading from Amazon.com took 0.460000038147
No matches found with query: u'http://www.amazon.com/s/?field-title=LAntisemitismo&search-alias=stripbooks&sort=relevanceexprank&unfiltered=1&field-author=Jean+Paul+Sartre'

********************************************************************************

****************************** Google ******************************
Request extra headers: [('User-agent', 'Mozilla/5.0 (Windows NT 5.2; rv:2.0.1) Gecko/20100101 Firefox/4.0.1')]
Found 0 results
Downloading from Google took 0.449000120163

********************************************************************************
The identify phase took 0.62 seconds
The longest time (0.460000) was taken by: Amazon.com
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

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers