1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

Added: Tags support to NetImport (Lists) (#3127)

* Add tags support to NetImport (Lists)

* Keep indentation consistent with current code

* Initialize set of empty tags

* Add tags from list to movie

* Prevent tags used by lists from being removed
This commit is contained in:
Ricardo Amaral
2019-05-02 11:57:40 +01:00
committed by Leonardo Galli
parent 84fab25af7
commit 7a43bf3f60
10 changed files with 47 additions and 4 deletions
@@ -1,4 +1,5 @@
using Marr.Data;
using System.Collections.Generic;
using Marr.Data;
using NzbDrone.Core.Profiles;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Movies;
@@ -7,6 +8,11 @@ namespace NzbDrone.Core.NetImport
{
public class NetImportDefinition : ProviderDefinition
{
public NetImportDefinition()
{
Tags = new HashSet<int>();
}
public bool Enabled { get; set; }
public bool EnableAuto { get; set; }
public bool ShouldMonitor { get; set; }
@@ -15,5 +21,6 @@ namespace NzbDrone.Core.NetImport
public LazyLoaded<Profile> Profile { get; set; }
public string RootFolderPath { get; set; }
public override bool Enable => Enabled;
public HashSet<int> Tags { get; set; }
}
}