Merge pull request #1558 from lithium720/patch-1

Updated URL's and URL handling.
This commit is contained in:
Jaex 2016-05-16 09:08:37 +03:00
commit 911c859d50

View file

@ -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/";
}
}
}