Web: Add youtu.be to Youtube's domain list

This commit is contained in:
Valentin Lorentz 2024-08-15 23:03:31 +02:00
parent 72e90b6972
commit c56fc5aa81

View File

@ -151,7 +151,7 @@ class Web(callbacks.PluginRegexp):
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 <title>
size = max(819200, size)