From: Thorsten Date: Fri, 12 Feb 2021 16:12:55 +0000 (+0100) Subject: fix tube X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=cf3a05ed872e18e6663fe1c091645ded62dc340f;p=urlbot-v3.git fix tube --- 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