From 99768ebad8c856e31db55f500e5ef60441049840 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 10 Jul 2023 16:05:02 +0200 Subject: [PATCH] Fix regex --- reminder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reminder.py b/reminder.py index 2b0cdb2..4239e70 100644 --- a/reminder.py +++ b/reminder.py @@ -37,7 +37,7 @@ CONFIG = { "ts_stream_id": 311658, - "zoom_url_regex": re.compile('https://cern.zoom.us/j/\d+?pwd=\w+'), + "zoom_url_regex": re.compile('https://cern.zoom.us/j/\d+\?pwd=\w+'), } @@ -102,7 +102,7 @@ def zoom_meeting_url(self): lambda s: s["stream_id"] == CONFIG["ts_stream_id"], response["streams"], )) - match = CONFIG["zoom_url_regex"].match(stream["description"]) + match = CONFIG["zoom_url_regex"].search(stream["description"]) return match.group()