mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Added title to Gfycat uploads otherwise not shows GIF preview on Discord
This commit is contained in:
parent
cf6d35bafe
commit
b18fab5bc0
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,7 @@ public class GfycatUploader : FileUploader, IOAuth2
|
|||
public bool IgnoreExisting { get; set; } = true;
|
||||
public bool Private { get; set; } = true;
|
||||
public bool KeepAudio { get; set; } = true;
|
||||
public string Title { get; set; } = "ShareX";
|
||||
|
||||
private const string URL_AUTHORIZE = "https://gfycat.com/oauth/authorize";
|
||||
private const string URL_UPLOAD = "https://filedrop.gfycat.com";
|
||||
|
@ -270,6 +271,7 @@ private GfycatCreateResponse CreateGfycat(NameValueCollection headers)
|
|||
args.Add("noResize", NoResize);
|
||||
args.Add("noMd5", IgnoreExisting);
|
||||
args.Add("keepAudio", KeepAudio);
|
||||
args.Add("title", Title);
|
||||
|
||||
string json = JsonConvert.SerializeObject(args);
|
||||
|
||||
|
|
Loading…
Reference in a new issue