mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Added fallback for intentional typo, in case it gonna be fixed in future
This commit is contained in:
parent
7cea6afbd2
commit
eb97bd4029
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue