Skip to content

Commit

Permalink
Web: Add youtu.be to Youtube's domain list
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Aug 15, 2024
1 parent 72e90b6 commit c56fc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Web/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <title>
size = max(819200, size)
Expand Down

0 comments on commit c56fc5a

Please sign in to comment.