Restabilized add artist flow with NodeJS API

This commit is contained in:
Joseph Milazzo
2017-06-21 20:30:45 -05:00
parent dc0db08ca8
commit bf7f890c48
4 changed files with 5 additions and 14 deletions
@@ -81,7 +81,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
// We need to perform a direct lookup of the artist
var httpRequest = _requestBuilder.Create()
.SetSegment("route", "artists/" + foreignArtistId)
.SetSegment("route", "artist/" + foreignArtistId)
//.SetSegment("route", "search")
//.AddQueryParam("type", "artist,album")
//.AddQueryParam("q", spotifyId.ToString())
@@ -227,7 +227,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
var httpRequest = _requestBuilder.Create()
.SetSegment("route", "search")
.AddQueryParam("type", "artist") // TODO: LidarrAPI.Metadata is getting , encoded. Needs to be raw ,
.AddQueryParam("type", "artist")
.AddQueryParam("query", title.ToLower().Trim())
.Build();