fix ddg returning weird reresults when no match is found

This commit is contained in:
lolcat 2025-08-06 20:19:13 -04:00
parent 3f2bfcb8c7
commit 1e52982cb9
1 changed files with 9 additions and 0 deletions

View File

@ -525,6 +525,15 @@ class ddg{
if(isset($item["c"])){ if(isset($item["c"])){
if(
!isset($item["s"]) &&
isset($item["t"]) &&
$item["t"] == "DEEP_ERROR_NO_RESULTS"
){
return $out;
}
$table = []; $table = [];
// get youtube video information // get youtube video information