Rethought about where certain things are stored.

Profiles are now a component of the NetImportDefinition.
This commit is contained in:
Leonardo Galli
2017-01-22 17:02:20 +01:00
parent 9fffcfaea3
commit 94eccc6c14
11 changed files with 36 additions and 25 deletions

View File

@@ -21,15 +21,11 @@ namespace NzbDrone.Core.NetImport
public NetImportBaseSettings()
{
Link = "http://rss.imdb.com/list/";
ProfileId = 1;
}
[FieldDefinition(0, Label = "Link", HelpText = "Link to the list of movies.")]
public string Link { get; set; }
[FieldDefinition(1, Label = "Quality Profile", Type = FieldType.Select, SelectOptions = typeof(Profile), HelpText = "Quality Profile of all added movies")]
public int ProfileId { get; set; }
public bool IsValid => !string.IsNullOrWhiteSpace(Link);
public NzbDroneValidationResult Validate()