# 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
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: