mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
fixed #2682: Handle Gfycat transcode errors
This commit is contained in:
parent
a320b962e6
commit
448da5cd37
1 changed files with 7 additions and 0 deletions
|
@ -227,6 +227,12 @@ private void WaitForTranscode(string name, UploadResult result)
|
|||
result.IsSuccess = false;
|
||||
break;
|
||||
}
|
||||
else if (response.Task.Equals("error", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
Errors.Add(response.Description);
|
||||
result.IsSuccess = false;
|
||||
break;
|
||||
}
|
||||
else if (response.GfyName != null)
|
||||
{
|
||||
result.IsSuccess = true;
|
||||
|
@ -320,5 +326,6 @@ public class GfycatStatusResponse
|
|||
public int Time { get; set; }
|
||||
public string GfyName { get; set; }
|
||||
public string Error { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue