Added fallback for intentional typo, in case it gonna be fixed in future

This commit is contained in:
Jaex 2017-03-29 22:22:20 +03:00
parent 7cea6afbd2
commit eb97bd4029

View file

@ -28,6 +28,7 @@ You should have received a copy of the GNU General Public License
using Newtonsoft.Json;
using ShareX.HelpersLib;
using ShareX.UploadersLib.Properties;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Drawing;
@ -232,7 +233,8 @@ private void WaitForTranscode(string name, UploadResult result)
result.URL = "https://gfycat.com/" + response.GfyName;
break;
}
else if (response.Task == "NotFoundo" && iterations > 10)
else if ((response.Task.Equals("NotFoundo", StringComparison.InvariantCultureIgnoreCase) ||
response.Task.Equals("NotFound", StringComparison.InvariantCultureIgnoreCase)) && iterations > 10)
{
Errors.Add("Gfy not found");
result.IsSuccess = false;