mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
Provider testing improvements
New: Test button for indexers in UI Fixed: Testing download clients shows error messages in UI Fixed: Testing notifications shows error messages in UI
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FluentValidation.Results;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Composition;
|
||||
using NzbDrone.Core.Lifecycle;
|
||||
@@ -75,6 +76,11 @@ namespace NzbDrone.Core.ThingiProvider
|
||||
return definitions;
|
||||
}
|
||||
|
||||
public ValidationResult Test(TProviderDefinition definition)
|
||||
{
|
||||
return GetInstance(definition).Test();
|
||||
}
|
||||
|
||||
public List<TProvider> GetAvailableProviders()
|
||||
{
|
||||
return Active().Select(GetInstance).ToList();
|
||||
|
||||
Reference in New Issue
Block a user