Direct support for ISBN-13 for cover images.
Now that ISBNs are being issues with GS1 prefix 979, we can no longer rely on conversion to ISBN-10 for books issued with an ISBN-13. We should look into whether Amazon and Open Library can be queried for cover images using ISBN-13 and update the application to support this.
I have a draft PR #406 that provides support for Open Library, but it looks like there's no simple way to do it for Amazon. As far as I can tell, using an ISBN-13 doesn't work like using an ISBN-10 or ASIN does for getting a cover image from Amazon.
Can you update the script : Scripts/biblioteq-download-images-sqlite.sh for books beginning with 979?
I haven't been able to do it myself :-(
Thanks in advance.
How?
Sorry, I'm the requester, not the developer :-) I have the impression that the Amazon site does not transmit the image with isbn13.
I'm another program that manages collections... I don't know the Perl language, so it's hard to say how they do it. I have the impression that gcstar retrieves the entire page and extracts the information it wants.
https://github.com/user-attachments/assets/6342682a-0073-463f-a6af-278b70e5c210
https://gitlab.com/GCstar/GCstar
Does this method inspire you?
No. The scripts don't have graphical interfaces.
You need to find the links for longer ISBNs for Amazon and Open Library. This is your request so you need to do some homework.
I tried a 13-digit ISBN for Amazon. It's probably somewhere. If you know it, the scripts will be improved because we can also extract the longer ISBN from the database.
test for isbn13: 9791035804657 The URL provides access to the book's details: https://www.amazon.com/s?k=9791035804657
The URL for the image link is, in principle, unmanageable. https://www.amazon.com/Histoire-1re-Collectif/dp/B07QBXLVND/ref=sr_1_1?dib=eyJ2IjoiMSJ9.0pQG9vfoAZn-c-pc0DVZxw.bwzLBjJgUnrMg4iI_zvf5gsULN88YLzXKbHWEYz_FqU&dib_tag=se&keywords=9791035804657&qid=1762449114&sr=8-1
If I look at the details of the book, the image has a link type: https://m.media-amazon.com/images/I/51azQ5uQX3L.SX342_SY445_ML2.jpg
Yeah, that ain't going to help. Can't link 81SqGqSXcWL to the ISBN.
I found an intermediary that provides the image URL:
project: https://github.com/w3slley/bookcover-api
curl -X GET "https://bookcover.longitood.com/bookcover/979-1035804657" {"url":"https://m.media-amazon.com/images/S/compressed.photo.goodreads.com/books/1678881427i/97579560.jpg"}
Yeah, not adding CURL into BQ.
bash script
Need specifics. Like for ISBN, curl this. Those are two fetches for a single image.
I don't know man too much work for images. I look later.
Yes, I understand. It's not as simple as it used to be. Have a good day.
I need two downloads and if the first download is now misbegotten because it cannot direct to the correct link, the second fetch has to understand the manner in which the error is defined. Or maybe the format changed. And this doesn't even address Open Library.
https://webservices.amazon.com/paapi5/documentation/images.html
https://webservices.amazon.com/paapi5/documentation/use-cases/search-with-external-identifiers.html
You need maybe two queries. 1. Translate the ISBN into an ASIN. 2. Download the image with an ASIN search.
The second link suggests that one search would suffice because you can specify the ISBN.