Im using Google Books API in order to get some covers of books.
In order to get them I use the following url:
"http://books.google.com/books/content?id=" + id + "&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api"
Where id is unique for a book.
For example, for the Harry Potter book, the following returns the cover:
http://books.google.com/books/content?id=o-QCOFDHmPEC&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api
However, there are some cases where there is no book cover, such as:
http://books.google.com/books/content?id=xsXnngEACAAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api
I was wondering if there is some method to know if an image has content or if it is not available in order to place some image for example in those place instead of keeping it like this.
Thank you