Add show log option to gui

This commit is contained in:
Heiner Lohaus 2024-11-19 15:26:03 +01:00
parent 7f1b8c9c60
commit 8f3fbee0d8
10 changed files with 96 additions and 46 deletions

View file

@ -11,7 +11,7 @@ class CloudflareError(ResponseStatusError):
...
def is_cloudflare(text: str) -> bool:
if "<title>Attention Required! | Cloudflare</title>" in text:
if "<title>Attention Required! | Cloudflare</title>" in text or 'id="cf-cloudflare-status"' in text:
return True
return '<div id="cf-please-wait">' in text or "<title>Just a moment...</title>" in text