Change default page value for user.getRecentTracks from 0 to 1

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
This commit is contained in:
Rikki Tooley 2015-09-01 02:36:17 +01:00
parent 63a71053c8
commit c49316fc66

View File

@ -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="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> /// <param name="count">Amount of scrobbles to return for this page.</param>
/// <returns>Enumerable of LastTrack</returns> /// <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) var command = new GetRecentTracksCommand(Auth, username)
{ {