From eb6fc932d929e9a000a2c70a0fd5d96f9441bbd7 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 4 Apr 2022 23:29:47 +0200 Subject: [PATCH] Web: Fix matching for youtube --- plugins/Web/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 037de9ed0..0b2912720 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -151,7 +151,8 @@ class Web(callbacks.PluginRegexp): size = conf.supybot.protocols.http.peekSize() parsed_url = utils.web.urlparse(url) - if parsed_url.netloc.endswith(('youtube.com', '.youtube.com')): + if parsed_url.netloc == 'youtube.com' \ + or parsed_url.netloc.endswith(('.youtube.com')): # there is a lot of Javascript before the size = 409600 if parsed_url.netloc in ('reddit.com', 'www.reddit.com', 'new.reddit.com'):