Error in Amazon ebook metadata download

Bug #2091542 reported by Orio Sargenti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Starting from yesterday the ebook metadata download from Amazon is not working
The included amazon metadata plugin "calibre\src\calibre\ebooks\metadata\sources\amazon.py" always report no match found

After setting "testing flag to true" in order to have the html for results page saved to a file (see attachement) I saw that there was one match in it but it was not included in the query result of the parse_results_page function

If I add '//div[contains(@class, "s-title")]//a[@href]' this to the query list as here below

for query in (
       '//div[contains(@class, "s-title")]//a[@href]',
       '//div[contains(@class, "s-result-list")]//h2/a[@href]',
       '//div[contains(@class, "s-result-list")]//div[@data-index]//h5//a[@href]',
       r'//li[starts-with(@id, "result_")]//a[@href and contains(@class, "s-access-detail-page")]',

the download work again

As I am very poor at html parsing I guess the proposed solution is not the best one but I hope it give hints for the fix of the error (which I guess was originated by a change made by Amazon in the generation of the result page for a query inquire

Revision history for this message
Orio Sargenti (os-strus) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote :

It's still working for me are you downloading from a country specific
amazon site? Can you post the url of a book page on amazon for which it
fails.

Changed in calibre:
status: New → Incomplete
Revision history for this message
Orio Sargenti (os-strus) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote :

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

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.