X-Git-Url: https://git.hcoop.net/clinton/xbmc-groove.git/blobdiff_plain/88955d32b054bb4a4038ffbef7f2bee7340f144e..ff38aa426335dc1193d5925c2ca53ab142826985:/resources/lib/GroovesharkAPI.py 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: