From: stephendenham Date: Wed, 23 Apr 2014 17:36:18 +0000 (+0000) Subject: Fix for multiuser environment. X-Git-Url: https://git.hcoop.net/clinton/xbmc-groove.git/commitdiff_plain/ff38aa426335dc1193d5925c2ca53ab142826985 Fix for multiuser environment. git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@93 2dec19e3-eb1d-4749-8193-008c8bba0994 --- diff --git a/.pydevproject b/.pydevproject index 01c7a69..081a90d 100644 --- a/.pydevproject +++ b/.pydevproject @@ -7,8 +7,10 @@ /xbmc-groove /xbmc-groove/resources/lib -/xbmc-groove/resources/lib/simplejson /xbmc-groove/resources/lib/blowfish + +/home/stephen/Development/xbmc-stubs + diff --git a/addon.xml b/addon.xml index 0f308fa..87e5b44 100644 --- a/addon.xml +++ b/addon.xml @@ -1,6 +1,6 @@  + version="2.0.8" provider-name="Stephen Denham"> diff --git a/changelog.txt b/changelog.txt index 4f05c06..8e7d8df 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +2.0.8 + +Fix for multiuser environment. + 2.0.7 Fix background image. diff --git a/resources/lib/GroovesharkAPI.py b/resources/lib/GroovesharkAPI.py index fd09c16..9376956 100644 --- a/resources/lib/GroovesharkAPI.py +++ b/resources/lib/GroovesharkAPI.py @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with xbmc-groove. If not, see . -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: