Change type to album_type as per API docs

When filtering by album type, the parameter is not type, but album_type

See https://developer.spotify.com/web-api/get-artists-albums/
This commit is contained in:
Vijay Santhanam 2015-12-07 16:44:13 +11:00
parent 20972c46d6
commit fc6c849c27

View File

@ -144,7 +144,7 @@ namespace SpotifyAPI.Web
{
limit = Math.Min(limit, 50);
StringBuilder builder = new StringBuilder(APIBase + "/artists/" + id + "/albums");
builder.Append("?type=" + type.GetStringAttribute(","));
builder.Append("?album_type=" + type.GetStringAttribute(","));
builder.Append("&limit=" + limit);
builder.Append("&offset=" + offset);
if (!String.IsNullOrEmpty(market))