From 8fee2540b2362bb99a392c8349873e162319ae16 Mon Sep 17 00:00:00 2001 From: dgw Date: Sun, 22 Oct 2023 20:29:09 -0500 Subject: [PATCH] Handle `/live/VIDEO_ID` links --- sopel_youtube/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel_youtube/__init__.py b/sopel_youtube/__init__.py index 27bbc5b..4332d3d 100644 --- a/sopel_youtube/__init__.py +++ b/sopel_youtube/__init__.py @@ -40,7 +40,7 @@ r"((?:T)(?P[0-9]+([,.][0-9]+)?H)?" r"(?P[0-9]+([,.][0-9]+)?M)?" r"(?P[0-9]+([,.][0-9]+)?S)?)?$") -video_regex = re.compile(r'(?:youtube\.com/(?:watch\S*v=|shorts/)|youtu\.be/)([\w-]+)') +video_regex = re.compile(r'(?:youtube\.com/(?:watch\S*v=|shorts/|live/)|youtu\.be/)([\w-]+)') playlist_regex = re.compile(r'youtube\.com/(playlist|watch)\S*list=([\w-]+)')