mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
New: Enable/Disable RSS Sync/Searching on a per indexer basis
This commit is contained in:
@@ -24,7 +24,8 @@ namespace NzbDrone.Core.Indexers
|
||||
yield return new IndexerDefinition
|
||||
{
|
||||
Name = GetType().Name,
|
||||
Enable = config.Validate().IsValid,
|
||||
EnableRss = config.Validate().IsValid,
|
||||
EnableSearch = config.Validate().IsValid && SupportsSearch,
|
||||
Implementation = GetType().Name,
|
||||
Settings = config
|
||||
};
|
||||
@@ -36,10 +37,10 @@ namespace NzbDrone.Core.Indexers
|
||||
public abstract ValidationResult Test();
|
||||
public abstract DownloadProtocol Protocol { get; }
|
||||
|
||||
public virtual Boolean SupportsFeed { get { return true; } }
|
||||
public virtual Boolean SupportsRss { get { return true; } }
|
||||
public virtual Boolean SupportsSearch { get { return true; } }
|
||||
public virtual Int32 SupportedPageSize { get { return 0; } }
|
||||
public bool SupportsPaging { get { return SupportedPageSize > 0; } }
|
||||
public virtual Boolean SupportsSearching { get { return true; } }
|
||||
|
||||
protected TSettings Settings
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user