aboutsummaryrefslogtreecommitdiffstats
path: root/scraper/ddg.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-08-06 20:19:13 -0400
committerlolcat <will@lolcat.ca>2025-08-06 20:19:13 -0400
commit1e52982cb98130bc4c63e92b882e3940bced3be9 (patch)
tree81c82204ef63bddd6d931e6c20383da77023e532 /scraper/ddg.php
parent3f2bfcb8c7740c93163806ad274aa802d1a7eab4 (diff)
fix ddg returning weird reresults when no match is found
Diffstat (limited to 'scraper/ddg.php')
-rw-r--r--scraper/ddg.php9
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage