Added categories to newznab section

This commit is contained in:
Mark McDowall
2013-07-30 20:41:46 -07:00
parent f9fe119af2
commit 17842d3fa1
2 changed files with 28 additions and 6 deletions
@@ -1,16 +1,25 @@
using System;
using System.Collections;
using System.Collections.Generic;
using NzbDrone.Core.Annotations;
namespace NzbDrone.Core.Indexers.Newznab
{
public class NewznabSettings : IIndexerSetting
{
public NewznabSettings()
{
Categories = new [] { 5030, 5040 };
}
[FieldDefinition(0, Label = "URL")]
public String Url { get; set; }
[FieldDefinition(1, Label = "API Key")]
public String ApiKey { get; set; }
public IEnumerable<Int32> Categories { get; set; }
public bool IsValid
{
get