Add default definitions for download clients

This commit is contained in:
Bogdan
2023-06-06 19:56:35 +03:00
parent 88e793d76d
commit 98db8f8bf8

View File

@@ -27,7 +27,20 @@ namespace NzbDrone.Core.Download
public virtual ProviderMessage Message => null;
public IEnumerable<ProviderDefinition> DefaultDefinitions => new List<ProviderDefinition>();
public IEnumerable<ProviderDefinition> DefaultDefinitions
{
get
{
var config = (IProviderConfig)new TSettings();
yield return new DownloadClientDefinition
{
Name = GetType().Name,
Implementation = GetType().Name,
Settings = config
};
}
}
public ProviderDefinition Definition { get; set; }