diff options
| author | lolcat <will@lolcat.ca> | 2025-01-03 21:16:00 -0500 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-01-03 21:16:00 -0500 |
| commit | 1ca2626ad908f80544c2c08e6a444b4fc6d2bec5 (patch) | |
| tree | 472cbf34f2ea0e2378fcd146e904e3821640dc26 | |
| parent | 9ca93f34c6f8d8d40134550b51961d16727e8050 (diff) | |
fix ddg bug with EOF result
| -rw-r--r-- | scraper/ddg.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scraper/ddg.php b/scraper/ddg.php index a2d43c7..8ad3808 100644 --- a/scraper/ddg.php +++ b/scraper/ddg.php @@ -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" => |
