mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-13 02:15:48 +12:00
Merge pull request #1558 from lithium720/patch-1
Updated URL's and URL handling.
This commit is contained in:
commit
911c859d50
|
@ -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/";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue