diff --git a/images.go b/images.go index 17edb87..ca79dbe 100755 --- a/images.go +++ b/images.go @@ -135,6 +135,11 @@ func fetchImageResults(query, safe, lang string, page int, synchronous bool, thu return results } + if len(imageSearchEngines) == 0 { + printWarn("No image search engines configured in imageSearchEngines") + return nil + } + engineCount := len(imageSearchEngines) // Determine the engine to use based on the page number