Fix scrobble bug

adding the user session token multiple times
This commit is contained in:
Harry 2014-12-24 14:10:48 -04:00
parent 1299f51c81
commit 2a67393ada

View File

@ -22,9 +22,6 @@ public async Task<LastResponse> ScrobbleAsync(Scrobble scrobble)
{
const string apiMethod = "track.scrobble";
if (Auth.UserSession == null)
return LastResponse.CreateErrorResponse<LastResponse>(LastFmApiError.BadAuth);
var methodParameters = new Dictionary<string, string>
{
{"artist", scrobble.Artist},
@ -32,8 +29,7 @@ public async Task<LastResponse> ScrobbleAsync(Scrobble scrobble)
{"track", scrobble.Track},
{"albumArtist", scrobble.AlbumArtist},
{"chosenByUser", Convert.ToInt32(scrobble.ChosenByUser).ToString()},
{"timestamp", scrobble.TimePlayed.ToUnixTimestamp().ToString()},
{"sk", Auth.UserSession.Token}
{"timestamp", scrobble.TimePlayed.ToUnixTimestamp().ToString()}
};
var apisig = Auth.GenerateMethodSignature(apiMethod, methodParameters);