mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Web: Fix matching for youtube
This commit is contained in:
parent
21ea999e3c
commit
eb6fc932d9
@ -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 <title>
|
||||
size = 409600
|
||||
if parsed_url.netloc in ('reddit.com', 'www.reddit.com', 'new.reddit.com'):
|
||||
|
Loading…
Reference in New Issue
Block a user