View Single Post
Old 06-22-2025, 01:37 PM   #32
sourcecodemage
Junior Member
sourcecodemage began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Oct 2023
Location: USA
Device: Kindle Paperwhite 11th Gen
Quote:
Originally Posted by kevinp View Post
I followed the instructions in this Reddit post and now metadata downloads are working fine for me. It's a rather old post, but it is still working.

https://www.reddit.com/r/Calibre/com..._with_calibre/
That sort of works. I'm using Amazon as my reference, and ASIN:B010OS8BQW as my test case. I did find the book on Goodreads, but its Published date was way off. It said it was published in 1969 instead of 2014. Oops. So I still go back to amazon to get the correct date and fix it.

I've be trying to get the Amazon metadata plugin to work like this

Title: Spider-Man
ids: amazon:B010OS8BQW
Author: Unknown or Author: Stan Lee


Code:
calibre, version 8.5.0
ERROR: No matches found: <p>Failed to find any books that match your search. Try making the search <b>less specific</b>. For example, use only the author's last name and a single distinctive word from the title.<p>To see the full log, click "Show details".

Running identify query with parameters: 
{'title': 'Spider-Man', 'authors': ['Stan Lee'], 'identifiers': {'amazon': 'B010OS8BQW'}, 'timeout': 30} 
Using plugins: Amazon.com (1, 3, 13) 
The log from individual plugins is below 

****************************** Amazon.com (1, 3, 13) ****************************** 
Found 0 results 
Downloading from Amazon.com took 1.3944320678710938 
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Server: amazon
Downloading details from: https://www.amazon.com/dp/B010OS8BQW
Failed to make identify query: 'https://www.amazon.com/s/?search-alias=aps&unfiltered=1&sort=relevanceexprank&field-keywords=B010OS8BQW'
Traceback (most recent call last):
  File "calibre/ebooks/metadata/sources/amazon.py", line 1511, in search_amazon
  File "mechanize/_mechanize.py", line 241, in open_novisit
  File "mechanize/_mechanize.py", line 313, in _mech_open
mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 503: Service Unavailable 

******************************************************************************** 
The identify phase took 1.43 seconds 
The longest time (1.394432) was taken by: Amazon.com 
Merging results from different sources 
We have 0 merged results, merging took: 0.00 seconds

If I paste the query 'https://www.amazon.com/s/?search-alias=aps&unfiltered=1&sort=relevanceexprank&field-keywords=B010OS8BQW' into Firefox, it returns exactly one match, which is what I expected. For some reason the search plugin is getting a 503, though.

Also, I can find the book info here -> https://www.amazon.com/s?k=B010OS8BQ...qw%2Caps%2C179 but Calibre cannot find it. It returns an HTTP Error 503 instead.

Is there a setting I can change to get past the HTTP Error 503?
sourcecodemage is offline   Reply With Quote