From fb353478e24e5e4341b86fec3a390906e5e8ce74 Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Tue, 3 Jan 2017 23:12:37 +0200 Subject: Temporarily disable git.io URL shortening due to unidentified bug --- local/utility.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/local/utility.py b/local/utility.py index 1ae47a0..59dfd91 100644 --- a/local/utility.py +++ b/local/utility.py @@ -113,9 +113,11 @@ def getShortURL(longurl): url = longurl else: data = 'url=%s' % (longurl) - req = urllib2.Request("https://git.io/", data) - response = urllib2.urlopen(req) - url = response.info().getheader('Location') + # Temporarily disabled + url = longurl + #req = urllib2.Request("https://git.io/", data) + #response = urllib2.urlopen(req) + #url = response.info().getheader('Location') return ircutils.mircColor(url, "purple") getShortURL.github = re.compile('^([a-z]*\:\/\/)?([^\/]+.)?github.com') -- cgit v1.2.3