From 1e52982cb98130bc4c63e92b882e3940bced3be9 Mon Sep 17 00:00:00 2001 From: lolcat Date: Wed, 6 Aug 2025 20:19:13 -0400 Subject: [PATCH] fix ddg returning weird reresults when no match is found --- scraper/ddg.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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