Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add call_ids to all get_url calls

  • Loading branch information...
commit 70e86fb2d53841482ea068741f700f8923d4b700 1 parent 26f4224
@jwheare jwheare authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  static/playdar.js
View
2  static/playdar.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.