<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.audio.groove" name="Grooveshark XBMC"
- version="2.0.8" provider-name="Stephen Denham">
+ version="2.0.9" provider-name="Stephen Denham">
<requires>
<import addon="xbmc.python" version="2.1.0" />
<import addon="script.module.simplejson"/>
+2.0.9
+
+Fix for Android temp directory.
+
2.0.8
Fix for multiuser environment.
libDir = xbmc.translatePath(os.path.join(resDir, 'lib'))
imgDir = xbmc.translatePath(os.path.join(resDir, 'img'))
cacheDir = os.path.join(xbmc.translatePath('special://masterprofile/addon_data/'), os.path.basename(baseDir))
+tempDir = xbmc.translatePath('special://temp')
thumbDirName = 'thumb'
thumbDir = os.path.join(xbmc.translatePath('special://masterprofile/addon_data/'), os.path.basename(baseDir), thumbDirName)
__debugging__ = False
try:
- groovesharkApi = GrooveAPI(__debugging__)
+ groovesharkApi = GrooveAPI(__debugging__, tempDir)
if groovesharkApi.pingService() != True:
raise StandardError(__language__(30007))
except:
_debugging = False
# Constructor
- def __init__(self, debug):
+ def __init__(self, debug, tempDir):
self._debugging = debug
self.simplejson = simplejson
if "linux" in sys.platform.lower():
socket.setdefaulttimeout(30)
- self.cacheDir = os.path.join(tempfile.gettempdir(),getpass.getuser() + '_' + 'groovesharkapi')
+ self.cacheDir = tempDir
if os.path.isdir(self.cacheDir) == False:
os.makedirs(self.cacheDir)
if self._debugging: