mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
existing series search shows first suggestion
requests are sent to server sequentially not to kill the client.
This commit is contained in:
parent
482cbc20a3
commit
343a794c2a
3 changed files with 41 additions and 18 deletions
|
@ -1,6 +1,8 @@
|
|||
using Nancy;
|
||||
using System.Threading;
|
||||
using Nancy;
|
||||
using NzbDrone.Api.Extensions;
|
||||
using NzbDrone.Core.MetadataSource;
|
||||
using System.Linq;
|
||||
|
||||
namespace NzbDrone.Api.Series
|
||||
{
|
||||
|
@ -19,7 +21,7 @@ namespace NzbDrone.Api.Series
|
|||
private Response GetQualityType()
|
||||
{
|
||||
var tvDbResults = _searchProxy.SearchForNewSeries((string)Request.Query.term);
|
||||
return tvDbResults.AsResponse();
|
||||
return tvDbResults.FirstOrDefault().AsResponse();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue