From dfb6cfd59811cc24663480b3c7aae8209f39e036 Mon Sep 17 00:00:00 2001 From: Austin Date: Sun, 14 Nov 2021 17:21:44 -0500 Subject: [PATCH] ThumbnailAsset.ashx removal fix --- html/Game/Tools/ThumbnailAsset.ashx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/Game/Tools/ThumbnailAsset.ashx b/html/Game/Tools/ThumbnailAsset.ashx index 5e3a8ab..34211fc 100644 --- a/html/Game/Tools/ThumbnailAsset.ashx +++ b/html/Game/Tools/ThumbnailAsset.ashx @@ -71,5 +71,6 @@ if ($check->rowCount() > 0) //asset exists on Alphaland } else { - redirect('https://www.roblox.com/Game/Tools/ThumbnailAsset.ashx?fmt=' . $fmt . '&wd=' . $wd . '&ht=' . $ht . '&aid=' . $aid); + $json = json_decode(file_get_contents("https://thumbnails.roblox.com/v1/assets?assetIds=".$aid."&size=".$wd."x".$ht."&format=".$fmt."&isCircular=false")); + redirect($json->data[0]->imageUrl); } \ No newline at end of file