Skip to content

Commit

Permalink
Change default page value for user.getRecentTracks from 0 to 1
Browse files Browse the repository at this point in the history
API seems to have changed behaviour
- page=1 no longer contains "now playing" track as its first item
- page=0 no longer returns same as page=1 but without the "now playing" track
See #78
  • Loading branch information
rikkit committed Sep 1, 2015
1 parent 210c990 commit bbc6968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IF.Lastfm.Core/Api/UserApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public async Task<PageResponse<LastAlbum>> GetTopAlbums(string username, LastSta
/// <param name="pagenumber">Page numbering starts from 1. If set to 0, will not include the "now playing" track</param>
/// <param name="count">Amount of scrobbles to return for this page.</param>
/// <returns>Enumerable of LastTrack</returns>
public async Task<PageResponse<LastTrack>> GetRecentScrobbles(string username, DateTimeOffset? since = null, int pagenumber = 0, int count = LastFm.DefaultPageLength)
public async Task<PageResponse<LastTrack>> GetRecentScrobbles(string username, DateTimeOffset? since = null, int pagenumber = 1, int count = LastFm.DefaultPageLength)
{
var command = new GetRecentTracksCommand(Auth, username)
{
Expand Down

0 comments on commit bbc6968

Please sign in to comment.