diff --git a/src/IF.Lastfm.Core/Objects/LastTrack.cs b/src/IF.Lastfm.Core/Objects/LastTrack.cs index 7d1e0d3d..17e34b82 100644 --- a/src/IF.Lastfm.Core/Objects/LastTrack.cs +++ b/src/IF.Lastfm.Core/Objects/LastTrack.cs @@ -35,6 +35,8 @@ public class LastTrack : ILastfmObject public int? PlayCount { get; set; } + public int? UserPlayCount { get; set; } + public IEnumerable TopTags { get; set; } public DateTimeOffset? TimePlayed { get; set; } @@ -69,6 +71,13 @@ internal static LastTrack ParseJToken(JToken token) t.PlayCount = playCount; } + // same with userplaycount + int userPlayCount; + if(int.TryParse(token.Value("userplaycount"), out userPlayCount)) + { + t.UserPlayCount = userPlayCount; + } + t.Url = new Uri(token.Value("url"), UriKind.Absolute); var artistToken = token.SelectToken("artist");