From cf3a05ed872e18e6663fe1c091645ded62dc340f Mon Sep 17 00:00:00 2001 From: Thorsten Date: Fri, 12 Feb 2021 17:12:55 +0100 Subject: [PATCH] fix tube --- distbot/plugins/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distbot/plugins/youtube.py b/distbot/plugins/youtube.py index 4ea3aa0..4407a0f 100644 --- a/distbot/plugins/youtube.py +++ b/distbot/plugins/youtube.py @@ -34,7 +34,7 @@ class Youtube(Worker): def parse_body(self, msg): - result = re.findall(r'(https?://youtu[^\s>]+)', msg["body"]) + result = re.findall(r'(https?://(www\.)?youtu[^\s>]+)', msg["body"]) if not result or "(nospoiler)" in msg["body"]: return -- 2.39.2