From cdfae05df380eda6272fd42db515b7b7ce206d9e Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 20 Jun 2015 14:11:09 -0700 Subject: [PATCH] conf.py: raise protocols.http.peeksize to 8192 YouTube has recently updated its site design again so the element falls right out of the 4K mark. This commit raises the default peeksize to 8K, which allows title snarfing to work with YouTube links again. --- src/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.py b/src/conf.py index 92385713f..74acb5e21 100644 --- a/src/conf.py +++ b/src/conf.py @@ -1125,7 +1125,7 @@ registerGlobalValue(supybot.protocols.irc.queuing.rateLimit, 'join', ### registerGroup(supybot.protocols, 'http') registerGlobalValue(supybot.protocols.http, 'peekSize', - registry.PositiveInteger(4096, _("""Determines how many bytes the bot will + registry.PositiveInteger(8192, _("""Determines how many bytes the bot will 'peek' at when looking through a URL for a doctype or title or something similar. It'll give up after it reads this many bytes, even if it hasn't found what it was looking for.""")))