NzbClub and any indexers with settings are not enabled by default

This commit is contained in:
Mark McDowall 2013-07-04 14:20:08 -07:00
parent bcf5e3785e
commit 943a05bc09
5 changed files with 19 additions and 5 deletions

View File

@ -7,6 +7,8 @@ namespace NzbDrone.Core.Indexers
{ {
string Name { get; } string Name { get; }
bool EnableByDefault { get; }
IEnumerable<IndexerDefinition> DefaultDefinitions { get; } IEnumerable<IndexerDefinition> DefaultDefinitions { get; }
IndexerDefinition InstanceDefinition { get; set; } IndexerDefinition InstanceDefinition { get; set; }

View File

@ -7,6 +7,8 @@ namespace NzbDrone.Core.Indexers
{ {
public abstract string Name { get; } public abstract string Name { get; }
public virtual bool EnableByDefault { get { return true; } }
public IndexerDefinition InstanceDefinition { get; set; } public IndexerDefinition InstanceDefinition { get; set; }
public virtual IEnumerable<IndexerDefinition> DefaultDefinitions public virtual IEnumerable<IndexerDefinition> DefaultDefinitions

View File

@ -7,6 +7,11 @@ namespace NzbDrone.Core.Indexers
{ {
public TSetting Settings { get; set; } public TSetting Settings { get; set; }
public override bool EnableByDefault
{
get { return false; }
}
public TSetting ImportSettingsFromJson(string json) public TSetting ImportSettingsFromJson(string json)
{ {
Settings = Json.Deserialize<TSetting>(json) ?? new TSetting(); Settings = Json.Deserialize<TSetting>(json) ?? new TSetting();

View File

@ -10,6 +10,11 @@ namespace NzbDrone.Core.Indexers.NzbClub
get { return "NzbClub"; } get { return "NzbClub"; }
} }
public override bool EnableByDefault
{
get { return false; }
}
public override IParseFeed Parser public override IParseFeed Parser
{ {
get get

View File

@ -5,6 +5,11 @@ namespace NzbDrone.Core.Indexers.Wombles
{ {
public class Wombles : IndexerBase public class Wombles : IndexerBase
{ {
public override string Name
{
get { return "WomblesIndex"; }
}
public override IParseFeed Parser public override IParseFeed Parser
{ {
get get
@ -18,11 +23,6 @@ namespace NzbDrone.Core.Indexers.Wombles
get { yield return "http://nzb.isasecret.com/rss/?sec=TV&fr=false"; } get { yield return "http://nzb.isasecret.com/rss/?sec=TV&fr=false"; }
} }
public override string Name
{
get { return "WomblesIndex"; }
}
public override IEnumerable<string> GetEpisodeSearchUrls(string seriesTitle, int seasonNumber, int episodeNumber) public override IEnumerable<string> GetEpisodeSearchUrls(string seriesTitle, int seasonNumber, int episodeNumber)
{ {
return new List<string>(); return new List<string>();