Skip to content

Commit

Permalink
Merge pull request #1738 from lithium720/master
Browse files Browse the repository at this point in the history
Lithiio - Removed anonymous upload support
  • Loading branch information
Jaex committed Jul 23, 2016
2 parents e6563f9 + f740fd9 commit 76294b4
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 126 deletions.
4 changes: 2 additions & 2 deletions ShareX.UploadersLib/FileUploaders/Lithiio.cs
Expand Up @@ -42,7 +42,7 @@ public class LithiioFileUploaderService : FileUploaderService


public override bool CheckConfig(UploadersConfig config) public override bool CheckConfig(UploadersConfig config)
{ {
return config.LithiioSettings != null; return config.LithiioSettings != null && !string.IsNullOrEmpty(config.LithiioSettings.UserAPIKey);
} }


public override GenericUploader CreateUploader(UploadersConfig config, TaskReferenceHelper taskInfo) public override GenericUploader CreateUploader(UploadersConfig config, TaskReferenceHelper taskInfo)
Expand All @@ -62,7 +62,7 @@ public Lithiio(LithiioSettings config)
Config = config; Config = config;
} }


private const string uploadUrl = "http://api.lithi.io/v2/"; private const string uploadUrl = "http://api.lithi.io/v3/";


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://i.lithi.io/", "https://lithi.io/i/", "https://i.mugi.io/", "https://mugi.io/i/" };


Expand Down
24 changes: 8 additions & 16 deletions ShareX.UploadersLib/Forms/UploadersConfigForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76294b4

Please sign in to comment.