From c56fc5aa81b4d2d57080f417e9a5ae961370e317 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 15 Aug 2024 23:03:31 +0200 Subject: [PATCH] Web: Add youtu.be to Youtube's domain list --- plugins/Web/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 76a8b04e1..c56da8535 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -151,7 +151,7 @@ def getTitle(self, irc, url, raiseErrors, msg): size = conf.supybot.protocols.http.peekSize() parsed_url = utils.web.urlparse(url) - if parsed_url.netloc == 'youtube.com' \ + if parsed_url.netloc in ('youtube.com', 'youtu.be') \ or parsed_url.netloc.endswith(('.youtube.com')): # there is a lot of Javascript before the size = max(819200, size)