New icon for dark backgrounds. Socket timeout for Linux.
authorstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Wed, 28 Dec 2011 16:28:02 +0000 (16:28 +0000)
committerstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Wed, 28 Dec 2011 16:28:02 +0000 (16:28 +0000)
git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@72 2dec19e3-eb1d-4749-8193-008c8bba0994

addon.xml
changelog.txt
description.xml
icon.png
resources/img/default.tbn
resources/lib/GroovesharkAPI.py

index ead02fb..5e57411 100644 (file)
--- a/addon.xml
+++ b/addon.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.audio.groove" name="Grooveshark XBMC"
-       version="1.0.1" provider-name="Stephen Denham">
+       version="1.0.2" provider-name="Stephen Denham">
        <requires>
                <import addon="xbmc.python" version="2.0" />
                <import addon="script.module.simplejson"/>
index ee03994..2fc73e7 100644 (file)
@@ -1,3 +1,7 @@
+1.0.2
+
+New icon for dark backgrounds. Socket timeout for Linux.
+
 1.0.1
 
 Bug fix.
index 3ae1b2a..342a8a7 100644 (file)
@@ -18,7 +18,7 @@
        <title>Grooveshark XBMC</title>
 
        <!-- (required) Major.minor.build -->
-       <version>1.0.1</version>
+       <version>1.0.2</version>
 
        <!--
                (required) author name & email. at least one author name is required
dissimilarity index 99%
index 7519e94..2d2ba74 100644 (file)
Binary files a/icon.png and b/icon.png differ
dissimilarity index 99%
index 13716fb..1f8cc31 100644 (file)
Binary files a/resources/img/default.tbn and b/resources/img/default.tbn differ
index a011276..d524ad2 100644 (file)
@@ -15,7 +15,7 @@
 #    You should have received a copy of the GNU General Public License
 #    along with xbmc-groove.  If not, see <http://www.gnu.org/licenses/>.
 
-import urllib2, pprint, md5, os, pickle, tempfile, time, re, simplejson, base64
+import urllib2, pprint, md5, os, pickle, tempfile, time, re, simplejson, base64, sys, socket
 from blowfish import Blowfish
 
 SESSION_EXPIRY = 1209600 # 2 weeks
@@ -46,6 +46,9 @@ class GrooveAPI:
                
                self._debugging = debug
                self.simplejson = simplejson
+               if "linux" in sys.platform.lower():
+                       socket.setdefaulttimeout(30)
+                       
                self.cacheDir = os.path.join(tempfile.gettempdir(), 'groovesharkapi')
                if os.path.isdir(self.cacheDir) == False:
                        os.makedirs(self.cacheDir)