summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-11-25 23:58:52 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2009-11-25 23:58:52 +0100
commit62caf6ac52b6adcec29fc33f5371aa9cf250e722 (patch)
tree0ba70b78b9d3c822ff66cfc4bfb97e81ede96c46 /modules
parent8cce07e3649c94260d81e1430ec6de773a3034fd (diff)
Fixed title regex.
Diffstat (limited to 'modules')
-rw-r--r--modules/url_titles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/url_titles.py b/modules/url_titles.py
index fe5181c..fbca0d9 100644
--- a/modules/url_titles.py
+++ b/modules/url_titles.py
@@ -8,7 +8,7 @@ import re, urllib2, htmlentitydefs, gzip, cStringIO, spotimeta
class Module:
re_http = re.compile(r'(http://[^\ ]+)')
- re_title = re.compile(r'<title>(.*?)</title>', re.S | re.I)
+ re_title = re.compile(r'<title[^>]+?>(.*?)</title>', re.S | re.I)
metadata = spotimeta.Metadata(cache = {})
def __init__(self, bot):