Compare commits
3 Commits
3f2bfcb8c7
...
f33f02e816
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f33f02e816 | ||
![]() |
27b8509ac0 | ||
![]() |
1e52982cb9 |
@ -525,6 +525,15 @@ class ddg{
|
|||||||
|
|
||||||
if(isset($item["c"])){
|
if(isset($item["c"])){
|
||||||
|
|
||||||
|
if(
|
||||||
|
!isset($item["s"]) &&
|
||||||
|
isset($item["t"]) &&
|
||||||
|
$item["t"] == "DEEP_ERROR_NO_RESULTS"
|
||||||
|
){
|
||||||
|
|
||||||
|
return $out;
|
||||||
|
}
|
||||||
|
|
||||||
$table = [];
|
$table = [];
|
||||||
|
|
||||||
// get youtube video information
|
// get youtube video information
|
||||||
@ -1049,8 +1058,8 @@ class ddg{
|
|||||||
"description" => $description,
|
"description" => $description,
|
||||||
"url" => $json["AbstractURL"],
|
"url" => $json["AbstractURL"],
|
||||||
"thumb" =>
|
"thumb" =>
|
||||||
(isset($json["Image"]) && $json["Image"]) !== null ?
|
(!isset($json["Image"]) || $json["Image"] == "" || $json["Image"] === null) ?
|
||||||
"https://duckduckgo.com" . $json["Image"] : null,
|
null : "https://duckduckgo.com" . $json["Image"],
|
||||||
"table" => $table,
|
"table" => $table,
|
||||||
"sublink" => $sublinks
|
"sublink" => $sublinks
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user