Permalink
Browse files

Add call_ids to all get_url calls

  • Loading branch information...
1 parent 26f4224 commit 70e86fb2d53841482ea068741f700f8923d4b700 @jwheare jwheare committed Jul 19, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 static/playdar.js
View
@@ -495,6 +495,7 @@ Playdar.Boffin = function () {
Playdar.Boffin.prototype = {
get_url: function (method, query_params) {
query_params = query_params || {};
+ query_params.call_id = new Date().getTime();
query_params.jsonp = query_params.jsonp || 'Playdar.Util.null_callback';
Playdar.client.add_auth_token(query_params);
return Playdar.client.get_base_url("/boffin/" + method, query_params);
@@ -536,6 +537,7 @@ Playdar.Scrobbler = function () {
Playdar.Scrobbler.prototype = {
get_url: function (method, query_params) {
query_params = query_params || {};
+ query_params.call_id = new Date().getTime();
query_params.jsonp = query_params.jsonp || 'Playdar.Util.null_callback';
Playdar.client.add_auth_token(query_params);
return Playdar.client.get_base_url("/audioscrobbler/" + method, query_params);

0 comments on commit 70e86fb

Please sign in to comment.