Synced with main

duckduckgo images nsfw fix -- 49ddd1a216
This commit is contained in:
vdbhb59 2025-03-21 11:04:06 +05:30
commit 1a49026bac
2 changed files with 11 additions and 7 deletions

View file

@ -37,7 +37,7 @@ class yandex{
"Accept-Encoding: gzip",
"Accept-Language: en-US,en;q=0.5",
"DNT: 1",
"Cookie: yp=1716337604.sp.family%3A{$nsfw}#1685406411.szm.1:1920x1080:1920x999",
"Cookie: yp=" . (time() - 4000033) . ".szm.1:1920x1080:876x1000#" . time() . ".sp.family:" . $nsfw,
"Referer: https://yandex.com/images/search",
"Connection: keep-alive",
"Upgrade-Insecure-Requests: 1",
@ -668,7 +668,6 @@ class yandex{
foreach($json["blocks"] as $block){
$html .= $block["html"];
// get next page
if(
isset($block["params"]["nextPageUrl"]) &&
@ -1167,4 +1166,4 @@ class yandex{
return trim($title);
}
}
}