Skip to content
Permalink
Browse files
Issue TooTallNate#81 - New flash key. Moved sp_log and sp_user_info c…
…ommands after login_complete
  • Loading branch information
Brandt Abbott committed Apr 26, 2014
1 parent 809c0ce commit 9268e2fd0322027781e3fbbf965c07770d271ac6
Showing 1 changed file with 3 additions and 2 deletions.
@@ -436,7 +436,8 @@ Spotify.prototype._onmessagecommand = function (command, args) {
} else if ('ping_flash2' == command) {
this.sendPong(args[0]);
} else if ('login_complete' == command) {
// ignore...
this.sendCommand('sp/log', [41, 1, 0, 0, 0, 0]); // Spotify.Logging.Logger#logWindowSize
this.sendCommand('sp/user_info', this._onuserinfo.bind(this));
} else {
// unhandled message
console.error(command, args);
@@ -471,7 +472,7 @@ Spotify.prototype.sendPong = function(ping) {
var pong = "undefined 0";
var input = ping.split(' ');
if (input.length >= 20) {
var key = [[19,104],[16,19],[0,41],[3,133],[10,175],[1,240],[5,150],[17,116],[7,240],[13,0]];
var key = [[7, 203], [15, 15], [1, 96], [19, 93], [3, 165], [14, 130], [12, 16], [4, 6], [6, 225], [13, 37]];
var output = new Array(key.length);
for (var i = 0; i < key.length; i++) {
var idx = key[i][0];

0 comments on commit 9268e2f

Please sign in to comment.