mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-13 18:27:08 -07:00
Fixed: Artist/Album lookup endpoints display error on failure
This commit is contained in:
parent
f2a1100d95
commit
6a414cff14
2 changed files with 2 additions and 6 deletions
|
@ -19,14 +19,12 @@ namespace Lidarr.Api.V1.Artist
|
|||
Get["/"] = x => Search();
|
||||
}
|
||||
|
||||
|
||||
private Response Search()
|
||||
{
|
||||
var searchResults = _searchProxy.SearchForNewArtist((string)Request.Query.term);
|
||||
return MapToResource(searchResults).AsResponse();
|
||||
return MapToResource(searchResults).ToList().AsResponse();
|
||||
}
|
||||
|
||||
|
||||
private static IEnumerable<ArtistResource> MapToResource(IEnumerable<NzbDrone.Core.Music.Artist> artist)
|
||||
{
|
||||
foreach (var currentArtist in artist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue