From 25d0b1f5155101731a602258b7b92b4b96fc0971 Mon Sep 17 00:00:00 2001 From: Justin Date: Sun, 15 May 2016 22:59:57 -0700 Subject: [PATCH] Updated URL's and URL handling. Added a domain, and the 'i' sub domain configurations. Changed to building the URL locally. --- ShareX.UploadersLib/FileUploaders/Lithiio.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ShareX.UploadersLib/FileUploaders/Lithiio.cs b/ShareX.UploadersLib/FileUploaders/Lithiio.cs index 68a0a2c97..a23740a9a 100644 --- a/ShareX.UploadersLib/FileUploaders/Lithiio.cs +++ b/ShareX.UploadersLib/FileUploaders/Lithiio.cs @@ -60,8 +60,7 @@ public Lithiio(LithiioSettings config) private const string uploadUrl = "http://api.lithi.io/upload.php"; - // TODO: Add the other domains to the dropdown menu. - public static string[] UploadURLs = new string[] { "https://lithi.io/" }; + public static string[] UploadURLs = new string[] { "https://i.lithi.io/", "https://lithi.io/i/", "https://i.mugi.io/", "https://mugi.io/i/"}; public override UploadResult Upload(Stream stream, string fileName) { @@ -77,7 +76,7 @@ public override UploadResult Upload(Stream stream, string fileName) if (result.IsSuccess) { - result.URL = result.Response; + result.URL = Config.UploadURL + result.Response; } return result; @@ -98,6 +97,6 @@ internal class LithiioFile public class LithiioSettings { public string UserAPIKey { get; set; } = string.Empty; - public string UploadURL { get; set; } = "https://lithi.io/"; + public string UploadURL { get; set; } = "https://i.lithi.io/"; } -} \ No newline at end of file +}