View Single Post
Old 11-02-2021, 01:13 PM   #1
soilheart
Junior Member
soilheart began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2021
Device: Kobo Glo HD (/Forma)
How to best write workaround for Google Books API Bug

Hi.

So, I came upon this Google Books API "bug" a few days ago:

https://stackoverflow.com/questions/...-giving-output

In my case the problematic ISBN was 9780786954377, e.g. https://books.google.com/books/feeds...:9780786954377 didn't return any results, while https://books.google.com/books/feeds...:9780786954377 returned the book as expected.

I thought I'd make a PR for this, but need help to figure out the best solution out of the following.

1. Fallback to ISBN:XXX if no result is found when searching for isbn:XXX
1.a. ... if no author or title is set (this way the fallback won't affect "normal operation").

2. Add support for checking "google" identifier and fetching data for the correct book without searching (seems like there's no way to search for the google identifier).
2. a. ... if no "isbn" identifier exist (this way you don't have to clear the google identifier if you change the isbn and want to search anew).

Any opinions/other suggestions?
soilheart is offline   Reply With Quote