<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.audio.groove" name="Grooveshark XBMC"
- version="1.0.1" provider-name="Stephen Denham">
+ version="1.0.2" provider-name="Stephen Denham">
<requires>
<import addon="xbmc.python" version="2.0" />
<import addon="script.module.simplejson"/>
<title>Grooveshark XBMC</title>
<!-- (required) Major.minor.build -->
- <version>1.0.1</version>
+ <version>1.0.2</version>
<!--
(required) author name & email. at least one author name is required
# 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, md5, os, pickle, tempfile, time, re, simplejson, base64
+import urllib2, pprint, md5, os, pickle, tempfile, time, re, simplejson, base64, sys, socket
from blowfish import Blowfish
SESSION_EXPIRY = 1209600 # 2 weeks
self._debugging = debug
self.simplejson = simplejson
+ if "linux" in sys.platform.lower():
+ socket.setdefaulttimeout(30)
+
self.cacheDir = os.path.join(tempfile.gettempdir(), 'groovesharkapi')
if os.path.isdir(self.cacheDir) == False:
os.makedirs(self.cacheDir)