NzbClub and any indexers with settings are not enabled by default

pull/3113/head
Mark McDowall 12 years ago
parent bcf5e3785e
commit 943a05bc09

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

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

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

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

@ -5,6 +5,11 @@ namespace NzbDrone.Core.Indexers.Wombles
{
public class Wombles : IndexerBase
{
public override string Name
{
get { return "WomblesIndex"; }
}
public override IParseFeed Parser
{
get
@ -18,11 +23,6 @@ namespace NzbDrone.Core.Indexers.Wombles
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)
{
return new List<string>();

Loading…
Cancel
Save