Commits

Vladimir Kolev  committed a863aed

Fixed authentication tokens

  • Participants
  • Parent commits 5e33527

Comments (0)

Files changed (1)

File lib/groove.py

 def dummy(error = None):
     pass
 
-_referer = "http://grooveshark.com/JSQueue.swf?20111111.111"
+_referer = "http://grooveshark.com/JSQueue.swf?20120312.08"
 _token = None
 _isInitialized = False
 _initializingLock = threading.Lock()
 
 h = {}
 h["country"] = {}
-h["country"]["CC1"] = "0"
+h["country"]["CC1"] = "72057594037927940"
 h["country"]["CC2"] = "0"
 h["country"]["CC3"] = "0"
 h["country"]["IPR"] = "1"
 h["country"]["CC4"] = "0"
-h["country"]["ID"] = "1"
+h["country"]["ID"] = "57"
 h["privacy"] = 0
 h["session"] = None
 h["uuid"] = str.upper(str(uuid.uuid4()))
     p["method"] = "getCommunicationToken"
     p["header"] = h
     p["header"]["client"] = "htmlshark"
-    p["header"]["clientRevision"] = "20120220"
+    p["header"]["clientRevision"] = "20120312"
 
     conn = createCurl("https://grooveshark.com/more.php?" + p["method"])
     conn.setopt(pycurl.POST, True)
     p["parameters"]["query"] = query
     p["header"] = h
     p["header"]["client"] = "htmlshark"
-    p["header"]["clientRevision"] = "20120220"
-    p["header"]["token"] = prepToken("getResultsFromSearch", ":jayLikeWater:")
+    p["header"]["clientRevision"] = "20120312"
+    p["header"]["token"] = prepToken("getResultsFromSearch", ":reallyHotSauce:")
     p["method"] = "getResultsFromSearch"
 
     conn = createCurl("https://grooveshark.com/more.php?" + p["method"])
     p["parameters"]["country"] = h["country"]
     p["header"] = h
     p["header"]["client"] = "jsqueue"
-    p["header"]["clientRevision"] = "20120220.01"
-    p["header"]["token"] = prepToken("getStreamKeysFromSongIDs", ":bangersAndMash:")
+    p["header"]["clientRevision"] = "20120312.08"
+    p["header"]["token"] = prepToken("getStreamKeysFromSongIDs", ":circlesAndSquares:")
     p["method"] = "getStreamKeysFromSongIDs"
 
     conn = createCurl("https://grooveshark.com/more.php?" + p["method"])