Closed Mozzo1000 closed 2 months ago
We naively retrieve a cover image from https://covers.openlibrary.org with the books isbn.
https://covers.openlibrary.org/b/isbn/0241624126-L.jpg
OpenLibrary apparently returns a 200 with a 1x1 white image even thought it can't find a cover for this particular isbn.
According to the documentation we can append ?default=false
to make requests for covers return a 404 if not found.
By default it returns a blank image if the cover cannot be found. If you append ?default=false to the end of the URL, then it returns a 404 instead.
If there does not exist a cover image for a book. The book card should still display something in it's place instead of an empty container