mi1kb0t icon indicating copy to clipboard operation
mi1kb0t copied to clipboard

Google Image API bad URLs

Open DanH42 opened this issue 9 years ago • 0 comments

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.

DanH42 avatar Jan 28 '16 18:01 DanH42