summaryrefslogtreecommitdiff
path: root/modules/url_titles.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/url_titles.py')
-rw-r--r--modules/url_titles.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/url_titles.py b/modules/url_titles.py
index 966b71b..5c5ae1b 100644
--- a/modules/url_titles.py
+++ b/modules/url_titles.py
@@ -4,6 +4,8 @@ info = {
'description': 'Fetches the title tags off of URLs.',
}
+cfg_section = 'module/url_titles'
+
import re, urllib2, htmlentitydefs, gzip, cStringIO, time
from PIL import ImageFile
@@ -68,7 +70,7 @@ class Module:
t = time.time()
try:
- u = urllib2.urlopen(url)
+ u = urllib2.urlopen(url, timeout = config.getfloat(cfg_section, 'timeout'))
except:
return
if not 'content-type' in u.headers: