diff options
| author | lolcat <will@lolcat.ca> | 2025-08-06 20:19:13 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-08-06 20:19:13 -0400 |
| commit | 1e52982cb98130bc4c63e92b882e3940bced3be9 (patch) | |
| tree | 81c82204ef63bddd6d931e6c20383da77023e532 | |
| parent | 3f2bfcb8c7740c93163806ad274aa802d1a7eab4 (diff) | |
fix ddg returning weird reresults when no match is found
| -rw-r--r-- | scraper/ddg.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scraper/ddg.php b/scraper/ddg.php index ad83b73..80bbadd 100644 --- a/scraper/ddg.php +++ b/scraper/ddg.php @@ -525,6 +525,15 @@ class ddg{ if(isset($item["c"])){ + if( + !isset($item["s"]) && + isset($item["t"]) && + $item["t"] == "DEEP_ERROR_NO_RESULTS" + ){ + + return $out; + } + $table = []; // get youtube video information |
