diff --git a/SpotifyAPI/Web/SpotifyWebAPI.cs b/SpotifyAPI/Web/SpotifyWebAPI.cs index e4771f38..b7252870 100644 --- a/SpotifyAPI/Web/SpotifyWebAPI.cs +++ b/SpotifyAPI/Web/SpotifyWebAPI.cs @@ -812,7 +812,7 @@ namespace SpotifyAPI.Web public ErrorResponse SaveTracks(List ids) { JArray array = new JArray(ids); - return UploadData(SpotifyWebBuilder.APIBase + "/me/tracks/", array.ToString(Formatting.None), "PUT") ?? new ErrorResponse(); + return UploadData(_builder.SearchItems(array.ToString(Formatting.None), "PUT") ?? new ErrorResponse()); } /// @@ -824,7 +824,7 @@ namespace SpotifyAPI.Web public Task SaveTracksAsync(List ids) { JArray array = new JArray(ids); - return UploadDataAsync(SpotifyWebBuilder.APIBase + "/me/tracks/", array.ToString(Formatting.None), "PUT") ?? Task.FromResult(new ErrorResponse()); + return UploadDataAsync(_builder.SearchItems(array.ToString(Formatting.None)), "PUT") ?? Task.FromResult(new ErrorResponse()); } /// @@ -888,7 +888,7 @@ namespace SpotifyAPI.Web public ErrorResponse RemoveSavedTracks(List ids) { JArray array = new JArray(ids); - return UploadData(SpotifyWebBuilder.APIBase + "/me/tracks/", array.ToString(Formatting.None), "DELETE") ?? new ErrorResponse(); + return UploadData(_builder.SearchItems(array.ToString(Formatting.None), "DELETE") ?? new ErrorResponse(); } /// @@ -900,7 +900,7 @@ namespace SpotifyAPI.Web public Task RemoveSavedTracksAsync(List ids) { JArray array = new JArray(ids); - return UploadDataAsync(SpotifyWebBuilder.APIBase + "/me/tracks/", array.ToString(Formatting.None), "DELETE") ?? Task.FromResult(new ErrorResponse()); + return UploadDataAsync(_builder.SearchItems(array.ToString(Formatting.None), "DELETE") ?? Task.FromResult(new ErrorResponse()); } ///