mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
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:
@@ -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();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user