From 9f637443a7465d9de8b9d87ff9e4d4cfd43b40f2 Mon Sep 17 00:00:00 2001 From: lolcat Date: Tue, 17 Nov 2026 21:17:09 -0500 Subject: [PATCH] 500px fix --- scraper/fivehpx.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scraper/fivehpx.php b/scraper/fivehpx.php index 0aa77fb..532bb76 100644 --- a/scraper/fivehpx.php +++ b/scraper/fivehpx.php @@ -241,7 +241,7 @@ class fivehpx{ $small = $this->image_ratio(600, $image["width"], $image["height"]); //$large = $this->image_ratio(2048, $image["width"], $image["height"]); - $large = $this->image_ratio(3840, $image["width"], $image["height"]); + $large = $this->image_ratio(1024, $image["width"], $image["height"]); // for some fuck ass reason the invalid signature error gives me the // signature key they use, lol @@ -265,9 +265,7 @@ class fivehpx{ $expiry = time() + 3600; $images[] = [ - "url" => - "https://cdn-resize-prod-com.500px.cloud/photo/{$image_id[1]}/0.jpg?s=4&expiry={$expiry}&sig=" . - hash("sha256", "67gfdsgf!5uiyoi3fdsphoto/{$image_id[1]}/0.jpg4{$expiry}"), + "url" => $image["urls"]["size_1024"], "width" => $large[0] > $image["width"] ? $image["width"] : $large[0], "height" => $large[1] > $image["height"] ? $image["height"] : $large[1] ];