From 98dee4e4f0d479fb1cf467fe7216cd45fe94c347 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Tue, 29 Mar 2022 03:29:00 +1300 Subject: [PATCH] Add old image domain --- ImageCache.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ImageCache.cs b/ImageCache.cs index bfcb5ed4..ea7af164 100644 --- a/ImageCache.cs +++ b/ImageCache.cs @@ -12,6 +12,7 @@ namespace VRCX public static string GetImage(string url, string fileId, string version, string appVersion) { var imageHost = "api.vrchat.cloud"; + var imageHost1 = "files.vrchat.cloud"; var directoryLocation = Path.Combine(cacheLocation, fileId); var fileLocation = Path.Combine(directoryLocation, $"{version}.png"); @@ -26,7 +27,7 @@ namespace VRCX Directory.CreateDirectory(directoryLocation); Uri uri = new Uri(url); - if (uri.Host != imageHost) + if (uri.Host != imageHost && uri.Host != imageHost1) throw new ArgumentException("Invalid image host", url); using (var client = new WebClient())