remove that thing (d4aaebcd80)

workaround to get bigger wiki images (a2e056b47b)

handle captcha on coc coc (8a0a8359a8)
This commit is contained in:
FbIN Support 2025-08-31 11:30:42 +05:30
commit 4458521eb4
3 changed files with 49 additions and 150 deletions

View file

@ -164,6 +164,13 @@ class coccoc{
throw new Exception("Failed to decode JSON");
}
if(
isset($html["captcha"]) &&
(int)$html["captcha"] === 1
){
throw new Exception("Coc Coc returned a Captcha");
}
if(!isset($html["search"]["search_results"])){