Rework how albums are refreshed/added, add album search route (#190)

Rework how albums are refreshed/added, add album search route
This commit is contained in:
Qstick
2018-01-28 01:27:33 -05:00
committed by GitHub
parent 6ff5e6337b
commit 5551b2166a
21 changed files with 599 additions and 193 deletions
@@ -188,7 +188,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
}
}
public List<Album> SearchForNewAlbum(string title, string artist, DateTime releaseDate)
public List<Album> SearchForNewAlbum(string title, string artist)
{
try
{
@@ -223,7 +223,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
.SetSegment("route", "search")
.AddQueryParam("type", "album")
.AddQueryParam("query", title.ToLower().Trim())
.AddQueryParam("artist", artist.ToLower().Trim())
.AddQueryParam("artist", artist.IsNotNullOrWhiteSpace() ? artist.ToLower().Trim() : string.Empty)
.Build();