Add default definitions for download clients

pull/1722/head
Bogdan 1 year ago
parent 88e793d76d
commit 98db8f8bf8

@ -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; }

Loading…
Cancel
Save