mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-16 23:13:07 +01:00
Fix scrobble bug
adding the user session token multiple times
This commit is contained in:
parent
1299f51c81
commit
2a67393ada
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user