From 96fc6ef642c67e8f1462ce7cc1c51bbba89c8092 Mon Sep 17 00:00:00 2001 From: ruri Date: Thu, 4 Apr 2019 14:34:08 +0200 Subject: [PATCH] Fixed captcha not ready error for AZCaptcha and 2Captcha. --- RuriLib/CaptchaServices/AZCaptcha.cs | 4 ++-- RuriLib/CaptchaServices/TwoCaptcha.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RuriLib/CaptchaServices/AZCaptcha.cs b/RuriLib/CaptchaServices/AZCaptcha.cs index fadc8be..47f9f10 100644 --- a/RuriLib/CaptchaServices/AZCaptcha.cs +++ b/RuriLib/CaptchaServices/AZCaptcha.cs @@ -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(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(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; diff --git a/RuriLib/CaptchaServices/TwoCaptcha.cs b/RuriLib/CaptchaServices/TwoCaptcha.cs index 79375a4..10c10ba 100644 --- a/RuriLib/CaptchaServices/TwoCaptcha.cs +++ b/RuriLib/CaptchaServices/TwoCaptcha.cs @@ -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(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(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;