mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-09 22:25:39 +12:00
Merge pull request #1558 from lithium720/patch-1
Updated URL's and URL handling.
This commit is contained in:
commit
911c859d50
1 changed files with 4 additions and 5 deletions
|
@ -60,8 +60,7 @@ public Lithiio(LithiioSettings config)
|
||||||
|
|
||||||
private const string uploadUrl = "http://api.lithi.io/upload.php";
|
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://i.lithi.io/", "https://lithi.io/i/", "https://i.mugi.io/", "https://mugi.io/i/"};
|
||||||
public static string[] UploadURLs = new string[] { "https://lithi.io/" };
|
|
||||||
|
|
||||||
public override UploadResult Upload(Stream stream, string fileName)
|
public override UploadResult Upload(Stream stream, string fileName)
|
||||||
{
|
{
|
||||||
|
@ -77,7 +76,7 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
|
|
||||||
if (result.IsSuccess)
|
if (result.IsSuccess)
|
||||||
{
|
{
|
||||||
result.URL = result.Response;
|
result.URL = Config.UploadURL + result.Response;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -98,6 +97,6 @@ internal class LithiioFile
|
||||||
public class LithiioSettings
|
public class LithiioSettings
|
||||||
{
|
{
|
||||||
public string UserAPIKey { get; set; } = string.Empty;
|
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