Improve hot start by preselecting working video search instance
Some checks are pending
Run Integration Tests / test (push) Waiting to run

This commit is contained in:
partisan 2025-06-10 19:33:26 +02:00
parent 1ec633470b
commit 8f31f0b2eb
3 changed files with 77 additions and 18 deletions

View file

@ -135,10 +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
}
// This will not happen as during config load there is check to have at least something in search engine list
// if len(imageSearchEngines) == 0 {
// printWarn("No image search engines configured in imageSearchEngines")
// return nil
// }
engineCount := len(imageSearchEngines)