Fix IP get.
authorstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Sat, 26 May 2012 14:24:58 +0000 (14:24 +0000)
committerstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Sat, 26 May 2012 14:24:58 +0000 (14:24 +0000)
git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@75 2dec19e3-eb1d-4749-8193-008c8bba0994

resources/lib/GroovesharkAPI.py

index efa338e..added07 100644 (file)
@@ -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