mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Better client side error handling
This commit is contained in:
parent
08d811f7c3
commit
02cf23721a
8 changed files with 12 additions and 20 deletions
|
@ -13,6 +13,7 @@ using NzbDrone.Core.Model;
|
|||
using NzbDrone.Core.Providers;
|
||||
using NzbDrone.Core.Repository;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
using NzbDrone.Web.Filters;
|
||||
using NzbDrone.Web.Models;
|
||||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
|
@ -94,10 +95,9 @@ namespace NzbDrone.Web.Controllers
|
|||
return new EmptyResult();
|
||||
}
|
||||
|
||||
[JsonErrorFilter]
|
||||
public JsonResult LocalSearch(string term)
|
||||
{
|
||||
//Get Results from the local DB and return
|
||||
|
||||
var results = _seriesProvider.SearchForSeries(term).Select(s => new SeriesSearchResultModel
|
||||
{
|
||||
Id = s.SeriesId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue