diff options
| author | lolcat <will@lolcat.ca> | 2025-04-19 10:37:35 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-04-19 10:37:35 -0400 |
| commit | b85820cbcdde6c0cc64036546ab4c483ed857e3a (patch) | |
| tree | 51fa3d44b078e75b312d6306c307ec35b234210b | |
| parent | 4b85841a3e3485874e1b58dd9c839528e1293782 (diff) | |
hopefully this fixes bing images my fucking god
| -rw-r--r-- | proxy.php | 2 | ||||
| -rw-r--r-- | scraper/ddg.php | 2 | ||||
| -rw-r--r-- | scraper/qwant.php | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -87,7 +87,7 @@ try{ 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(); } diff --git a/scraper/ddg.php b/scraper/ddg.php index 2729028..7e7fc82 100644 --- a/scraper/ddg.php +++ b/scraper/ddg.php @@ -1969,7 +1969,7 @@ class ddg{ $id = $id[1]; } - return "https://" . $image["host"] . "/th/id/" . $id; + return "https://" . $image["host"] . "/th?id=" . rawurlencode($id); } private function bingratio($width, $height){ diff --git a/scraper/qwant.php b/scraper/qwant.php index da2afca..ecbd4ec 100644 --- a/scraper/qwant.php +++ b/scraper/qwant.php @@ -988,6 +988,6 @@ class qwant{ return $url; } - return "https://" . $image["host"] . "/th/id/" . $id; + return "https://" . $image["host"] . "/th?id=" . rawurlencode($id); } } |
