From: stephendenham Date: Sat, 26 May 2012 14:24:58 +0000 (+0000) Subject: Fix IP get. X-Git-Url: http://git.hcoop.net/clinton/xbmc-groove.git/commitdiff_plain/28ca437aa35105cd05429687ef1f99fe0696f32b Fix IP get. git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@75 2dec19e3-eb1d-4749-8193-008c8bba0994 --- diff --git a/resources/lib/GroovesharkAPI.py b/resources/lib/GroovesharkAPI.py index efa338e..added07 100644 --- a/resources/lib/GroovesharkAPI.py +++ b/resources/lib/GroovesharkAPI.py @@ -164,7 +164,7 @@ class GrooveAPI: # Get IP def _getIP(self): try: - myip = urllib2.urlopen('http://whatismyip.org').read() + myip = urllib2.urlopen('http://ipecho.net/plain').read() if re.match("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", myip): if self._debugging: print "IP is " + myip