fixed #2682: Handle Gfycat transcode errors

This commit is contained in:
Jaex 2017-08-28 09:43:50 +03:00
parent a320b962e6
commit 448da5cd37

View file

@ -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; }
}
}