|
|
@@ -659,6 +659,11 @@ class qwant{
|
|
|
throw new Exception("Qwant returned an API error");
|
|
|
}
|
|
|
|
|
|
+ if(isset($json["data"]["result"]["items"]["mainline"])){
|
|
|
+
|
|
|
+ throw new Exception("Qwant returned gibberish results");
|
|
|
+ }
|
|
|
+
|
|
|
$out = [
|
|
|
"status" => "ok",
|
|
|
"npt" => null,
|
|
|
@@ -754,6 +759,11 @@ class qwant{
|
|
|
throw new Exception("Qwant returned an API error");
|
|
|
}
|
|
|
|
|
|
+ if(isset($json["data"]["result"]["items"]["mainline"])){
|
|
|
+
|
|
|
+ throw new Exception("Qwant returned gibberish results");
|
|
|
+ }
|
|
|
+
|
|
|
$out = [
|
|
|
"status" => "ok",
|
|
|
"npt" => null,
|
|
|
@@ -856,6 +866,11 @@ class qwant{
|
|
|
throw new Exception("Qwant returned an API error");
|
|
|
}
|
|
|
|
|
|
+ if(isset($json["data"]["result"]["items"]["mainline"])){
|
|
|
+
|
|
|
+ throw new Exception("Qwant returned gibberish results");
|
|
|
+ }
|
|
|
+
|
|
|
$out = [
|
|
|
"status" => "ok",
|
|
|
"npt" => null,
|