From b65272daab726080570fed64c7cfe4b7408e390f Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 1 Feb 2022 23:32:49 +0100 Subject: [PATCH] crawler: accept more meta redirects --- morss/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/crawler.py b/morss/crawler.py index 83d7b20..4e44cf9 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -425,7 +425,7 @@ class HTTPRefreshHandler(BaseHandler): def http_response(self, req, resp): if 200 <= resp.code < 300: if resp.headers.get('refresh'): - regex = r'(?i)^(?P[0-9]+)\s*;\s*url=(["\']?)(?P.+)\2$' + regex = r'(?i)^(?P[0-9]+)\s*;\s*url\s*=\s*(["\']?)(?P.+)\2$' match = re.search(regex, resp.headers.get('refresh')) if match: