Fix sessions bug.
authorstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Mon, 12 May 2014 17:43:33 +0000 (17:43 +0000)
committerstephendenham <stephendenham@2dec19e3-eb1d-4749-8193-008c8bba0994>
Mon, 12 May 2014 17:43:33 +0000 (17:43 +0000)
git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@99 2dec19e3-eb1d-4749-8193-008c8bba0994

default.py
resources/lib/GroovesharkAPI.py

index 3ae1e04..75cc6b0 100644 (file)
@@ -714,8 +714,7 @@ class Grooveshark:
             dialog.ok(__language__(30008), __language__(30069), __language__(30070), __language__(30082))
             return 0
         else:
-            if self.userid == 0:
-                uid = groovesharkApi.login(self.username, self.password)
+            uid = groovesharkApi.login(self.username, self.password)
             if (uid != 0):
                 return uid
             else:
index 91add08..a911570 100644 (file)
@@ -18,7 +18,7 @@
 import urllib2, pprint, os, pickle, time, re, simplejson, base64, sys, socket, hashlib
 from blowfish import Blowfish
 
-SESSION_EXPIRY = 120 #1209600 # 2 weeks
+SESSION_EXPIRY = 1209600 # 2 weeks
 
 # Web app
 WEB_APP_URL = "http://xbmc-groove.appspot.com/"