mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-25 12:31:04 -05:00
Web: Add youtu.be to Youtube's domain list
This commit is contained in:
parent
72e90b6972
commit
c56fc5aa81
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user