hopefully this fixes bing images my fucking god

This commit is contained in:
lolcat 2025-04-19 10:37:35 -04:00 committed by ngn
parent 785206e133
commit ab57951320
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D
3 changed files with 6 additions and 6 deletions

View File

@ -86,11 +86,11 @@ try{
case "thumb": $req = "?w=236&h=180&p=0&qlt=90"; break; case "thumb": $req = "?w=236&h=180&p=0&qlt=90"; break;
case "cover": $req = "?w=207&h=270&p=0&qlt=90"; break; case "cover": $req = "?w=207&h=270&p=0&qlt=90"; break;
} }
$proxy->stream_linear_image("https://" . $image["host"] . "/th/id/" . urlencode($id) . $req, "https://www.bing.com"); $proxy->stream_linear_image("https://" . $image["host"] . "/th?id=" . rawurlencode($id) . $req, "https://www.bing.com");
die(); die();
} }
// resize image ourselves // resize image ourselves
$payload = $proxy->get($_GET["i"], $proxy::req_image, true); $payload = $proxy->get($_GET["i"], $proxy::req_image, true);

View File

@ -1970,9 +1970,9 @@ class ddg{
$id = $id[1]; $id = $id[1];
} }
return "https://" . $image["host"] . "/th/id/" . $id; return "https://" . $image["host"] . "/th?id=" . rawurlencode($id);
} }
private function bingratio($width, $height){ private function bingratio($width, $height){
$ratio = [ $ratio = [

View File

@ -988,6 +988,6 @@ class qwant{
return $url; return $url;
} }
return "https://" . $image["host"] . "/th/id/" . $id; return "https://" . $image["host"] . "/th?id=" . rawurlencode($id);
} }
} }