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'):