fix ddg bug with EOF result

This commit is contained in:
lolcat 2025-01-03 21:16:00 -05:00
parent 9ca93f34c6
commit 1ca2626ad9
1 changed files with 19 additions and 0 deletions

View File

@ -612,6 +612,25 @@ class ddg{
}
}
$title =
$this->titledots(
$this->fuckhtml
->getTextContent(
$item["t"]
)
);
if(
$title == "EOF" &&
strpos(
$item["c"],
"google"
)
){
continue;
}
// parse search result
$out["web"][] = [
"title" =>