Yep & DDG fixes - synced

54d420f97c && 513bb666c5
This commit is contained in:
FbIN Support 2026-07-17 12:31:28 +05:30
commit 1aff7cef55
2 changed files with 4 additions and 2 deletions

View file

@ -1763,7 +1763,7 @@ class ddg{
if(count($answer) !== 0){ if(count($answer) !== 0){
$out["answer"][] = [ $out["answer"][] = [
"title" => ucfirst($word), "title" => ucfirst(rawurldecode($word)),
"description" => $answer, "description" => $answer,
"url" => "https://www.wordnik.com/words/" . $word, "url" => "https://www.wordnik.com/words/" . $word,
"thumb" => null, "thumb" => null,

View file

@ -249,7 +249,7 @@ class yep{
curl_setopt($curlproc, CURLOPT_HTTPHEADER, curl_setopt($curlproc, CURLOPT_HTTPHEADER,
["User-Agent: " . config::USER_AGENT, ["User-Agent: " . config::USER_AGENT,
"Accept: */*", "Accept: */*",
"Accept-Language: en-US,en;q=0.5", "Accept-Language: en-US,en;q=0.9",
"Accept-Encoding: gzip, deflate, br, zstd", "Accept-Encoding: gzip, deflate, br, zstd",
"Referer: https://yep.com/", "Referer: https://yep.com/",
"Origin: https://yep.com", "Origin: https://yep.com",
@ -259,6 +259,8 @@ class yep{
"Sec-Fetch-Mode: cors", "Sec-Fetch-Mode: cors",
"Sec-Fetch-Site: same-site", "Sec-Fetch-Site: same-site",
"Priority: u=4", "Priority: u=4",
"Pragma: no-cache",
"Cache-Control: no-cache",
"TE: trailers"] "TE: trailers"]
); );
} }