From 5a66e93f50b79c8593b84d54dd0c41e899f96ca3 Mon Sep 17 00:00:00 2001 From: marzzzello Date: Mon, 31 Jan 2022 13:40:19 +0100 Subject: [PATCH] fix _cloudfront_server_url --- duolingo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duolingo.py b/duolingo.py index fc4e06e..4e51505 100644 --- a/duolingo.py +++ b/duolingo.py @@ -567,7 +567,7 @@ def _cloudfront_server(self): if self._cloudfront_server_url: return self._cloudfront_server_url - server_list = re.search(r'//.+\.cloudfront\.net', self._homepage) + server_list = re.search(r'//\w+\.cloudfront\.net', self._homepage) self._cloudfront_server_url = "https:{}".format(server_list.group(0)) return self._cloudfront_server_url