mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-30 20:20:34 +12:00
Added Pomf clones: 1339.cf, bucket.pw, mixtape.moe, pantsu.cat, pomf.cat, pomf.hummingbird.moe, pomf.io, pomf.pl
This commit is contained in:
parent
4b546f4d90
commit
16690d12bd
|
@ -117,8 +117,6 @@ public enum FileDestination
|
|||
Localhostr,
|
||||
[Description("JIRA")]
|
||||
Jira,
|
||||
//[Description("hubiC")]
|
||||
//Hubic,
|
||||
[Description("Lambda")]
|
||||
Lambda,
|
||||
[Description("Imgrush")]
|
||||
|
|
|
@ -34,8 +34,16 @@ public class Pomf : FileUploader
|
|||
{
|
||||
public static List<PomfUploader> Uploaders = new List<PomfUploader>()
|
||||
{
|
||||
//new PomfUploader("pomf.se", "https://pomf.se/upload.php", "https://a.pomf.se"),
|
||||
new PomfUploader("maxfile.ro", "https://maxfile.ro/static/upload.php", "https://d.maxfile.ro")
|
||||
new PomfUploader("1339.cf", "http://1339.cf/upload.php", "http://b.1339.cf"),
|
||||
new PomfUploader("bucket.pw", "https://bucket.pw/upload.php", "https://dl.bucket.pw"),
|
||||
new PomfUploader("maxfile.ro", "https://maxfile.ro/static/upload.php", "https://d.maxfile.ro"),
|
||||
new PomfUploader("mixtape.moe", "https://mixtape.moe/upload.php"),
|
||||
new PomfUploader("pantsu.cat", "https://pantsu.cat/upload.php"),
|
||||
new PomfUploader("pomf.cat", "https://pomf.cat/upload.php", "http://a.pomf.cat"),
|
||||
new PomfUploader("pomf.hummingbird.moe", "http://pomf.hummingbird.moe/upload.php", "http://a.pomf.hummingbird.moe"),
|
||||
new PomfUploader("pomf.io", "http://pomf.io/upload.php"),
|
||||
new PomfUploader("pomf.pl", "http://pomf.pl/upload.php", "http://i.pomf.pl")
|
||||
//new PomfUploader("pomf.se", "https://pomf.se/upload.php", "https://a.pomf.se")
|
||||
};
|
||||
|
||||
public PomfUploader Uploader { get; set; }
|
||||
|
@ -55,7 +63,14 @@ public override UploadResult Upload(Stream stream, string fileName)
|
|||
|
||||
if (response.success && response.files != null && response.files.Count > 0)
|
||||
{
|
||||
result.URL = URLHelpers.CombineURL(Uploader.ResultURL, response.files[0].url);
|
||||
string url = response.files[0].url;
|
||||
|
||||
if (!string.IsNullOrEmpty(Uploader.ResultURL))
|
||||
{
|
||||
url = URLHelpers.CombineURL(Uploader.ResultURL, url);
|
||||
}
|
||||
|
||||
result.URL = url;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public class PomfUploader
|
|||
public string UploadURL { get; set; }
|
||||
public string ResultURL { get; set; }
|
||||
|
||||
public PomfUploader(string name, string uploadURL, string resultURL)
|
||||
public PomfUploader(string name, string uploadURL, string resultURL = null)
|
||||
{
|
||||
Name = name;
|
||||
UploadURL = uploadURL;
|
||||
|
|
|
@ -250,6 +250,10 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
|
|||
|
||||
public LambdaSettings LambdaSettings = new LambdaSettings();
|
||||
|
||||
// Pomf
|
||||
|
||||
public PomfUploader PomfUploader = null;
|
||||
|
||||
#endregion File uploaders
|
||||
|
||||
#region URL shorteners
|
||||
|
|
Loading…
Reference in a new issue