From fc6c849c2740f1f3a1164054ac76181355e96deb Mon Sep 17 00:00:00 2001 From: Vijay Santhanam Date: Mon, 7 Dec 2015 16:44:13 +1100 Subject: [PATCH] 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/ --- SpotifyAPI/Web/SpotifyWebBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpotifyAPI/Web/SpotifyWebBuilder.cs b/SpotifyAPI/Web/SpotifyWebBuilder.cs index fb08e223..c03965b5 100644 --- a/SpotifyAPI/Web/SpotifyWebBuilder.cs +++ b/SpotifyAPI/Web/SpotifyWebBuilder.cs @@ -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)) @@ -650,4 +650,4 @@ namespace SpotifyAPI.Web #endregion Tracks } -} \ No newline at end of file +}