From 51a31caf99557857e8bf062a10f5b90626d248cb Mon Sep 17 00:00:00 2001 From: neersighted Date: Fri, 23 Mar 2012 19:36:24 -0700 Subject: [PATCH] Update plugins/urlparse.py --- plugins/urlparse.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/urlparse.py b/plugins/urlparse.py index d8a9b62..58fb8e2 100755 --- a/plugins/urlparse.py +++ b/plugins/urlparse.py @@ -4,8 +4,7 @@ import re titler = re.compile(r'(?si)(.+?)') -def parse(url): - """ an improved version of our parsing code - now regex powered """ +def gettitle(url): url = urlnorm.normalize(url.encode('utf-8')) url = url.decode('utf-8') # add http if its missing @@ -34,4 +33,4 @@ def parse(url): @hook.command def title(inp): ".title -- gets the title of a web page" - return parse(inp) + return gettitle(inp)