From: John Runyon Date: Mon, 23 Oct 2023 12:22:44 +0000 (-0600) Subject: urls - include AIA usage flag in output X-Git-Url: https://jfr.im/git/erebus.git/commitdiff_plain/bd96ac575052f2d2e3b589e95361d53ef86d530f urls - include AIA usage flag in output --- diff --git a/modules/urls.py b/modules/urls.py index 19505b3..3583d16 100644 --- a/modules/urls.py +++ b/modules/urls.py @@ -270,7 +270,7 @@ def _do_request(url, try_aia=False): except Exception as e: return 'Unknown error: %s %r' % (type(e).__name__, e.args) - return response + return response, try_aia def goturl(url): @@ -280,7 +280,7 @@ def goturl(url): if regex.match(url): return None - response = _do_request(url) + response, used_aia = _do_request(url) if isinstance(response, stringbase): return response @@ -297,6 +297,9 @@ def goturl(url): else: output.append("[no length] ") + if used_aia: + output.append("[AIA] ") + # Try to add title if HTML if c_type == 'text/html': try: