canidlogic / zenlib

Simple library management system
MIT License
0 stars 0 forks source link

Query retry #3

Closed canidlogic closed 3 years ago

canidlogic commented 3 years ago

Since ISBNdb seems to often reject requests when it is busy, we need to add a retry mechanism where if the request fails once, the script delays for a little then tries it again, up to a maximum number of retries given by a configuration parameter.

canidlogic commented 3 years ago

We should also fix #9 at the same time with a query system overhaul.

Implement the multiple retries. But also detect the invalid ISBN return. In that case, try the WorldCat scraping trick to get a different ISBN number for the same resource and try again.