Fix for multiuser environment.
authorstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Wed, 23 Apr 2014 17:36:18 +0000 (17:36 +0000)
committerstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Wed, 23 Apr 2014 17:36:18 +0000 (17:36 +0000)
git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@93 2dec19e3-eb1d-4749-8193-008c8bba0994

.pydevproject
addon.xml
changelog.txt
resources/lib/GroovesharkAPI.py

index 01c7a69..081a90d 100644 (file)
@@ -7,8 +7,10 @@
 <pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
 <path>/xbmc-groove</path>
 <path>/xbmc-groove/resources/lib</path>
-<path>/xbmc-groove/resources/lib/simplejson</path>
 <path>/xbmc-groove/resources/lib/blowfish</path>
 </pydev_pathproperty>
 
+<pydev_pathproperty name="org.python.pydev.PROJECT_EXTERNAL_SOURCE_PATH">
+<path>/home/stephen/Development/xbmc-stubs</path>
+</pydev_pathproperty>
 </pydev_project>
index 0f308fa..87e5b44 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="2.0.7" provider-name="Stephen Denham">
+       version="2.0.8" provider-name="Stephen Denham">
        <requires>
                <import addon="xbmc.python" version="2.1.0" />
                <import addon="script.module.simplejson"/>
index 4f05c06..8e7d8df 100644 (file)
@@ -1,3 +1,7 @@
+2.0.8
+
+Fix for multiuser environment.
+
 2.0.7
 
 Fix background image.
index fd09c16..9376956 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, os, pickle, tempfile, time, re, simplejson, base64, sys, socket, hashlib
+import urllib2, pprint, os, pickle, tempfile, time, re, simplejson, base64, sys, socket, hashlib, getpass
 from blowfish import Blowfish
 
 SESSION_EXPIRY = 1209600 # 2 weeks
@@ -49,7 +49,7 @@ class GrooveAPI:
                if "linux" in sys.platform.lower():
                        socket.setdefaulttimeout(30)
                        
-               self.cacheDir = os.path.join(tempfile.gettempdir(), 'groovesharkapi')
+               self.cacheDir = os.path.join(tempfile.gettempdir(),getpass.getuser() + '_' + 'groovesharkapi')
                if os.path.isdir(self.cacheDir) == False:
                        os.makedirs(self.cacheDir)
                        if self._debugging: