mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed captcha not ready error for AZCaptcha and 2Captcha.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace RuriLib.CaptchaServices
|
||||
Thread.Sleep(5000);
|
||||
response = client.DownloadString($"http://azcaptcha.com/res.php?key={ApiKey}&action=get&id={TaskId}&json=1");
|
||||
GenericResponse gtrr = JsonConvert.DeserializeObject<GenericResponse>(response);
|
||||
if (gtrr.request.Contains("NOTREADY")) continue;
|
||||
if (gtrr.request.Contains("NOT_READY")) continue;
|
||||
if (gtrr.status == 0) throw new Exception(gtrr.request);
|
||||
Status = CaptchaStatus.Completed;
|
||||
return gtrr.request;
|
||||
@@ -84,7 +84,7 @@ namespace RuriLib.CaptchaServices
|
||||
Thread.Sleep(5000);
|
||||
response = client.DownloadString($"http://azcaptcha.com/res.php?key={ApiKey}&action=get&id={TaskId}&json=1");
|
||||
GenericResponse gtrr = JsonConvert.DeserializeObject<GenericResponse>(response);
|
||||
if (gtrr.request.Contains("NOTREADY")) continue;
|
||||
if (gtrr.request.Contains("NOT_READY")) continue;
|
||||
if (gtrr.status == 0) throw new Exception(gtrr.request);
|
||||
Status = CaptchaStatus.Completed;
|
||||
return gtrr.request;
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace RuriLib.CaptchaServices
|
||||
Thread.Sleep(5000);
|
||||
response = client.DownloadString($"http://2captcha.com/res.php?key={ApiKey}&action=get&id={TaskId}&json=1");
|
||||
GenericResponse gtrr = JsonConvert.DeserializeObject<GenericResponse>(response);
|
||||
if (gtrr.request.Contains("NOTREADY")) continue;
|
||||
if (gtrr.request.Contains("NOT_READY")) continue;
|
||||
if (gtrr.status == 0) throw new Exception(gtrr.request);
|
||||
Status = CaptchaStatus.Completed;
|
||||
return gtrr.request;
|
||||
@@ -84,7 +84,7 @@ namespace RuriLib.CaptchaServices
|
||||
Thread.Sleep(5000);
|
||||
response = client.DownloadString($"http://2captcha.com/res.php?key={ApiKey}&action=get&id={TaskId}&json=1");
|
||||
GenericResponse gtrr = JsonConvert.DeserializeObject<GenericResponse>(response);
|
||||
if (gtrr.request.Contains("NOTREADY")) continue;
|
||||
if (gtrr.request.Contains("NOT_READY")) continue;
|
||||
if (gtrr.status == 0) throw new Exception(gtrr.request);
|
||||
Status = CaptchaStatus.Completed;
|
||||
return gtrr.request;
|
||||
|
||||
Reference in New Issue
Block a user