mi1kb0t
mi1kb0t copied to clipboard
Google Image API bad URLs
The Google Custom Search API sometimes returns image URLs as x-raw-image:///(hex)
rather than HTTP links. This currently crashes the entire bot, but even if #12 gets taken care of, it would be better to select a different image rather than sending nothing at all (or an error message). If an unsupported URL is detected, maybe try a couple other results and check their URLs before failing.