1
0
forked from lolcat/4get

duckduckgo images nsfw fix

This commit is contained in:
2025-03-20 21:05:36 -04:00
parent 81ca8eaddc
commit 49ddd1a216
2 changed files with 9 additions and 5 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"]) &&