WIP: New: Exclusion Lists

This commit is contained in:
Qstick 2020-10-17 02:16:17 -04:00
parent 76cabb4927
commit 793cf22c3b
30 changed files with 100 additions and 84 deletions

View File

@ -49,6 +49,12 @@ function EditImportListModalContent(props) {
fields
} = item;
const importListTypeOptions = [
{ key: 'manual', value: 'Manual' },
{ key: 'automatic', value: 'Automatic Add' },
{ key: 'exclusion', value: 'Exclusion List' }
];
return (
<ModalContent onModalClose={onModalClose}>
<ModalHeader>
@ -100,8 +106,9 @@ function EditImportListModalContent(props) {
<FormLabel>{translate('EnableAutomaticAdd')}</FormLabel>
<FormInputGroup
type={inputTypes.CHECK}
type={inputTypes.SELECT}
name="enableAuto"
values={importListTypeOptions}
helpText={translate('EnableAutoHelpText')}
{...enableAuto}
onChange={onInputChange}

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Api.ImportList
base.MapToResource(resource, definition);
resource.Enabled = definition.Enabled;
resource.EnableAuto = definition.EnableAuto;
resource.EnableAuto = (int)definition.EnableAuto;
resource.ProfileId = definition.ProfileId;
resource.RootFolderPath = definition.RootFolderPath;
resource.ShouldMonitor = definition.ShouldMonitor;
@ -34,7 +34,7 @@ namespace NzbDrone.Api.ImportList
base.MapToModel(definition, resource);
definition.Enabled = resource.Enabled;
definition.EnableAuto = resource.EnableAuto;
definition.EnableAuto = (ImportListType)resource.EnableAuto;
definition.ProfileId = resource.ProfileId;
definition.RootFolderPath = resource.RootFolderPath;
definition.ShouldMonitor = resource.ShouldMonitor;

View File

@ -6,7 +6,7 @@ namespace NzbDrone.Api.ImportList
public class ImportListResource : ProviderResource
{
public bool Enabled { get; set; }
public bool EnableAuto { get; set; }
public int EnableAuto { get; set; }
public bool ShouldMonitor { get; set; }
public string RootFolderPath { get; set; }
public int ProfileId { get; set; }

View File

@ -37,7 +37,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
var mockList = new Mock<IImportList>();
mockList.SetupGet(s => s.Definition).Returns(new ImportListDefinition { Id = id });
mockList.SetupGet(s => s.EnableAuto).Returns(true);
mockList.SetupGet(s => s.EnableAuto).Returns(ImportListType.Automatic);
_lists.Add(mockList.Object);

View File

@ -42,12 +42,12 @@ namespace NzbDrone.Core.Test.ImportListTests
.Returns<Movie>(m => new Movie { TmdbId = m.TmdbId });
}
private void GivenList(int id, bool enabled, bool enabledAuto, ImportListFetchResult fetchResult)
private void GivenList(int id, bool enabled, ImportListType enabledAuto, ImportListFetchResult fetchResult)
{
CreateListResult(id, enabled, enabledAuto, fetchResult);
}
private Mock<IImportList> CreateListResult(int id, bool enabled, bool enabledAuto, ImportListFetchResult fetchResult)
private Mock<IImportList> CreateListResult(int id, bool enabled, ImportListType enabledAuto, ImportListFetchResult fetchResult)
{
var importListDefinition = new ImportListDefinition { Id = id, EnableAuto = enabledAuto };
@ -71,7 +71,7 @@ namespace NzbDrone.Core.Test.ImportListTests
public void should_return_failure_if_blocked_list()
{
var fetchResult = new ImportListFetchResult();
GivenList(1, true, true, fetchResult);
GivenList(1, true, ImportListType.Automatic, fetchResult);
GivenBlockedList(1);
var listResult = Subject.Fetch();
@ -82,11 +82,11 @@ namespace NzbDrone.Core.Test.ImportListTests
public void should_return_failure_if_one_blocked_list_one_good_list()
{
var fetchResult1 = new ImportListFetchResult();
GivenList(1, true, true, fetchResult1);
GivenList(1, true, ImportListType.Automatic, fetchResult1);
GivenBlockedList(1);
var fetchResult2 = new ImportListFetchResult { Movies = _listMovies, AnyFailure = true };
GivenList(2, true, true, fetchResult2);
GivenList(2, true, ImportListType.Automatic, fetchResult2);
var listResult = Subject.Fetch();
listResult.AnyFailure.Should().BeTrue();
@ -96,7 +96,7 @@ namespace NzbDrone.Core.Test.ImportListTests
public void should_return_failure_if_single_list_fails()
{
var fetchResult = new ImportListFetchResult { Movies = _listMovies, AnyFailure = true };
GivenList(1, true, true, fetchResult);
GivenList(1, true, ImportListType.Automatic, fetchResult);
var listResult = Subject.Fetch();
listResult.AnyFailure.Should().BeTrue();
@ -106,9 +106,9 @@ namespace NzbDrone.Core.Test.ImportListTests
public void should_return_failure_if_any_list_fails()
{
var fetchResult1 = new ImportListFetchResult { Movies = _listMovies, AnyFailure = true };
GivenList(1, true, true, fetchResult1);
GivenList(1, true, ImportListType.Automatic, fetchResult1);
var fetchResult2 = new ImportListFetchResult { Movies = _listMovies, AnyFailure = false };
GivenList(2, true, true, fetchResult2);
GivenList(2, true, ImportListType.Automatic, fetchResult2);
var listResult = Subject.Fetch();
listResult.AnyFailure.Should().BeTrue();
@ -131,7 +131,7 @@ namespace NzbDrone.Core.Test.ImportListTests
{
var listId = 1;
var fetchResult = new ImportListFetchResult { Movies = _listMovies, AnyFailure = false };
GivenList(listId, true, true, fetchResult);
GivenList(listId, true, ImportListType.Automatic, fetchResult);
var listResult = Subject.Fetch();
listResult.AnyFailure.Should().BeFalse();
@ -145,7 +145,7 @@ namespace NzbDrone.Core.Test.ImportListTests
{
var listId = 1;
var fetchResult = new ImportListFetchResult { Movies = _listMovies, AnyFailure = true };
GivenList(listId, true, true, fetchResult);
GivenList(listId, true, ImportListType.Automatic, fetchResult);
var listResult = Subject.Fetch();
listResult.AnyFailure.Should().BeTrue();
@ -159,10 +159,10 @@ namespace NzbDrone.Core.Test.ImportListTests
{
var passedListId = 1;
var fetchResult1 = new ImportListFetchResult { Movies = _listMovies, AnyFailure = false };
GivenList(passedListId, true, true, fetchResult1);
GivenList(passedListId, true, ImportListType.Automatic, fetchResult1);
var failedListId = 2;
var fetchResult2 = new ImportListFetchResult { Movies = _listMovies, AnyFailure = true };
GivenList(failedListId, true, true, fetchResult2);
GivenList(failedListId, true, ImportListType.Automatic, fetchResult2);
var listResult = Subject.Fetch();
listResult.AnyFailure.Should().BeTrue();
@ -176,10 +176,10 @@ namespace NzbDrone.Core.Test.ImportListTests
{
var passedListId = 1;
var fetchResult1 = new ImportListFetchResult { Movies = _listMovies, AnyFailure = false };
GivenList(passedListId, true, true, fetchResult1);
GivenList(passedListId, true, ImportListType.Automatic, fetchResult1);
var failedListId = 2;
var fetchResult2 = new ImportListFetchResult { Movies = _listMovies, AnyFailure = false };
GivenList(failedListId, true, true, fetchResult2);
GivenList(failedListId, true, ImportListType.Automatic, fetchResult2);
var listResult = Subject.Fetch();
listResult.AnyFailure.Should().BeFalse();

View File

@ -104,7 +104,7 @@ namespace NzbDrone.Core.Test.ImportList
.Returns(cleanLevel);
}
private void GivenList(int id, bool enabledAuto)
private void GivenList(int id, ImportListType enabledAuto)
{
var importListDefinition = new ImportListDefinition { Id = id, EnableAuto = enabledAuto };
@ -115,7 +115,7 @@ namespace NzbDrone.Core.Test.ImportList
CreateListResult(id, enabledAuto);
}
private Mock<IImportList> CreateListResult(int id, bool enabledAuto)
private Mock<IImportList> CreateListResult(int id, ImportListType enabledAuto)
{
var importListDefinition = new ImportListDefinition { Id = id, EnableAuto = enabledAuto };
@ -133,7 +133,7 @@ namespace NzbDrone.Core.Test.ImportList
public void should_not_clean_library_if_config_value_disable()
{
_importListFetch.Movies.ForEach(m => m.ListId = 1);
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("disabled");
Subject.Execute(_commandAll);
@ -149,7 +149,7 @@ namespace NzbDrone.Core.Test.ImportList
public void should_log_only_on_clean_library_if_config_value_logonly()
{
_importListFetch.Movies.ForEach(m => m.ListId = 1);
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("logOnly");
Mocker.GetMock<IMovieService>()
@ -172,7 +172,7 @@ namespace NzbDrone.Core.Test.ImportList
public void should_unmonitor_on_clean_library_if_config_value_keepAndUnmonitor()
{
_importListFetch.Movies.ForEach(m => m.ListId = 1);
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("keepAndUnmonitor");
Mocker.GetMock<IMovieService>()
@ -197,7 +197,7 @@ namespace NzbDrone.Core.Test.ImportList
_importListFetch.Movies.ForEach(m => m.ListId = 1);
_importListFetch.Movies[0].TmdbId = 6;
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("keepAndUnmonitor");
Mocker.GetMock<IMovieService>()
@ -217,7 +217,7 @@ namespace NzbDrone.Core.Test.ImportList
_importListFetch.Movies[0].TmdbId = 0;
_importListFetch.Movies[0].ImdbId = "6";
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("keepAndUnmonitor");
Mocker.GetMock<IMovieService>()
@ -234,7 +234,7 @@ namespace NzbDrone.Core.Test.ImportList
public void should_delete_movies_not_files_on_clean_library_if_config_value_logonly()
{
_importListFetch.Movies.ForEach(m => m.ListId = 1);
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("removeAndKeep");
Mocker.GetMock<IMovieService>()
@ -260,7 +260,7 @@ namespace NzbDrone.Core.Test.ImportList
public void should_delete_movies_and_files_on_clean_library_if_config_value_logonly()
{
_importListFetch.Movies.ForEach(m => m.ListId = 1);
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("removeAndDelete");
Mocker.GetMock<IMovieService>()
@ -288,7 +288,7 @@ namespace NzbDrone.Core.Test.ImportList
_importListFetch.Movies.ForEach(m => m.ListId = 1);
GivenListFailure();
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("disabled");
Subject.Execute(_commandAll);
@ -301,7 +301,7 @@ namespace NzbDrone.Core.Test.ImportList
public void should_add_new_movies_from_single_list_to_library()
{
_importListFetch.Movies.ForEach(m => m.ListId = 1);
GivenList(1, true);
GivenList(1, ImportListType.Automatic);
GivenCleanLevel("disabled");
Subject.Execute(_commandAll);
@ -317,8 +317,8 @@ namespace NzbDrone.Core.Test.ImportList
_importListFetch.Movies.ForEach(m => m.ListId = 1);
_importListFetch.Movies.AddRange(_list2Movies);
GivenList(1, true);
GivenList(2, true);
GivenList(1, ImportListType.Automatic);
GivenList(2, ImportListType.Automatic);
GivenCleanLevel("disabled");
@ -335,8 +335,8 @@ namespace NzbDrone.Core.Test.ImportList
_importListFetch.Movies.ForEach(m => m.ListId = 1);
_importListFetch.Movies.AddRange(_list2Movies);
GivenList(1, true);
GivenList(2, false);
GivenList(1, ImportListType.Automatic);
GivenList(2, ImportListType.Manual);
GivenCleanLevel("disabled");
@ -354,8 +354,8 @@ namespace NzbDrone.Core.Test.ImportList
_importListFetch.Movies.AddRange(_list2Movies);
_importListFetch.Movies[0].TmdbId = 4;
GivenList(1, true);
GivenList(2, true);
GivenList(1, ImportListType.Automatic);
GivenList(2, ImportListType.Automatic);
GivenCleanLevel("disabled");
@ -372,8 +372,8 @@ namespace NzbDrone.Core.Test.ImportList
_importListFetch.Movies.ForEach(m => m.ListId = 1);
_importListFetch.Movies.AddRange(_list2Movies);
GivenList(1, true);
GivenList(2, true);
GivenList(1, ImportListType.Automatic);
GivenList(2, ImportListType.Automatic);
GivenCleanLevel("disabled");
@ -394,8 +394,8 @@ namespace NzbDrone.Core.Test.ImportList
_importListFetch.Movies.ForEach(m => m.ListId = 1);
_importListFetch.Movies.AddRange(_list2Movies);
GivenList(1, true);
GivenList(2, true);
GivenList(1, ImportListType.Automatic);
GivenList(2, ImportListType.Automatic);
GivenCleanLevel("disabled");

View File

@ -9,9 +9,9 @@ namespace NzbDrone.Core.ImportLists.CouchPotato
{
public override string Name => "CouchPotato";
public override ImportListType ListType => ImportListType.Program;
public override ImportListSource ListType => ImportListSource.Program;
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public CouchPotatoImport(IHttpClient httpClient, IImportListStatusService importListStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
: base(httpClient, importListStatusService, configService, parsingService, logger)

View File

@ -5,9 +5,9 @@ namespace NzbDrone.Core.ImportLists
public interface IImportList : IProvider
{
bool Enabled { get; }
bool EnableAuto { get; }
ImportListType EnableAuto { get; }
ImportListType ListType { get; }
ImportListSource ListType { get; }
ImportListFetchResult Fetch();
}
}

View File

@ -31,9 +31,9 @@ namespace NzbDrone.Core.ImportLists
public abstract string Name { get; }
public abstract ImportListType ListType { get; }
public abstract ImportListSource ListType { get; }
public abstract bool Enabled { get; }
public abstract bool EnableAuto { get; }
public abstract ImportListType EnableAuto { get; }
public abstract ImportListFetchResult Fetch();
@ -59,7 +59,7 @@ namespace NzbDrone.Core.ImportLists
{
Name = GetType().Name,
Enabled = config.Validate().IsValid && Enabled,
EnableAuto = true,
EnableAuto = ImportListType.Automatic,
Implementation = GetType().Name,
Settings = config
};

View File

@ -12,7 +12,7 @@ namespace NzbDrone.Core.ImportLists
}
public bool Enabled { get; set; }
public bool EnableAuto { get; set; }
public ImportListType EnableAuto { get; set; }
public bool ShouldMonitor { get; set; }
public MovieStatusType MinimumAvailability { get; set; }
public int ProfileId { get; set; }
@ -20,6 +20,6 @@ namespace NzbDrone.Core.ImportLists
public bool SearchOnAdd { get; set; }
public override bool Enable => Enabled;
public ImportListType ListType { get; set; }
public ImportListSource ListType { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace NzbDrone.Core.ImportLists
{
public enum ImportListSource
{
Program,
TMDB,
Trakt,
Other,
Advanced
}
}

View File

@ -51,7 +51,7 @@ namespace NzbDrone.Core.ImportLists
{
var result = _listFetcherAndParser.Fetch();
if (_importListFactory.Enabled().Where(a => ((ImportListDefinition)a.Definition).EnableAuto).Empty())
if (_importListFactory.Enabled().Where(a => ((ImportListDefinition)a.Definition).EnableAuto == ImportListType.Automatic).Empty())
{
_logger.Info("No auto enabled lists, skipping sync and cleaning");
return;
@ -67,7 +67,7 @@ namespace NzbDrone.Core.ImportLists
private void ProcessMovieReport(ImportListDefinition importList, ImportListMovie report, List<ImportExclusion> listExclusions, List<int> dbMovies, List<Movie> moviesToAdd)
{
if (report.TmdbId == 0 || !importList.EnableAuto)
if (report.TmdbId == 0 || importList.EnableAuto != ImportListType.Automatic)
{
return;
}

View File

@ -2,10 +2,8 @@ namespace NzbDrone.Core.ImportLists
{
public enum ImportListType
{
Program,
TMDB,
Trakt,
Other,
Advanced
Manual,
Automatic,
Exclusion
}
}

View File

@ -11,9 +11,9 @@ namespace NzbDrone.Core.ImportLists.RSSImport
{
public override string Name => "RSS List";
public override ImportListType ListType => ImportListType.Advanced;
public override ImportListSource ListType => ImportListSource.Advanced;
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public RSSImport(IHttpClient httpClient, IImportListStatusService importListStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
: base(httpClient, importListStatusService, configService, parsingService, logger)
@ -33,7 +33,7 @@ namespace NzbDrone.Core.ImportLists.RSSImport
{
Name = "IMDb List",
Enabled = Enabled,
EnableAuto = true,
EnableAuto = ImportListType.Automatic,
ProfileId = 1,
Implementation = GetType().Name,
Settings = new RSSImportSettings { Link = "https://rss.imdb.com/list/YOURLISTID" },
@ -42,7 +42,7 @@ namespace NzbDrone.Core.ImportLists.RSSImport
{
Name = "IMDb Watchlist",
Enabled = Enabled,
EnableAuto = true,
EnableAuto = ImportListType.Automatic,
ProfileId = 1,
Implementation = GetType().Name,
Settings = new RSSImportSettings { Link = "https://rss.imdb.com/user/IMDBUSERID/watchlist" },

View File

@ -16,9 +16,9 @@ namespace NzbDrone.Core.ImportLists.Radarr
private readonly IRadarrV3Proxy _radarrV3Proxy;
public override string Name => "Radarr";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override ImportListType ListType => ImportListType.Program;
public override ImportListSource ListType => ImportListSource.Program;
public RadarrImport(IRadarrV3Proxy radarrV3Proxy,
IImportListStatusService importListStatusService,

View File

@ -11,9 +11,9 @@ namespace NzbDrone.Core.ImportLists.RadarrList
{
public override string Name => "Custom Lists";
public override ImportListType ListType => ImportListType.Advanced;
public override ImportListSource ListType => ImportListSource.Advanced;
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public RadarrListImport(IHttpClient httpClient,
IImportListStatusService importListStatusService,

View File

@ -14,9 +14,9 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList
public override string Name => "IMDb Lists";
public override ImportListType ListType => ImportListType.Other;
public override ImportListSource ListType => ImportListSource.Other;
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public IMDbListImport(IRadarrCloudRequestBuilder requestBuilder,
IHttpClient httpClient,
@ -42,7 +42,7 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList
{
Name = "IMDb Top 250",
Enabled = Enabled,
EnableAuto = true,
EnableAuto = ImportListType.Automatic,
ProfileId = 1,
Implementation = GetType().Name,
Settings = new IMDbListSettings { ListId = "top250" },
@ -51,7 +51,7 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.IMDbList
{
Name = "IMDb Popular Movies",
Enabled = Enabled,
EnableAuto = true,
EnableAuto = ImportListType.Automatic,
ProfileId = 1,
Implementation = GetType().Name,
Settings = new IMDbListSettings { ListId = "popular" },

View File

@ -12,9 +12,9 @@ namespace NzbDrone.Core.ImportLists.RadarrList2.StevenLu
public override string Name => "StevenLu List";
public override ImportListType ListType => ImportListType.Other;
public override ImportListSource ListType => ImportListSource.Other;
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public StevenLu2Import(IRadarrCloudRequestBuilder requestBuilder,
IHttpClient httpClient,

View File

@ -9,9 +9,9 @@ namespace NzbDrone.Core.ImportLists.StevenLu
{
public override string Name => "StevenLu Custom";
public override ImportListType ListType => ImportListType.Advanced;
public override ImportListSource ListType => ImportListSource.Advanced;
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public StevenLuImport(IHttpClient httpClient,
IImportListStatusService importListStatusService,

View File

@ -22,7 +22,7 @@ namespace NzbDrone.Core.ImportLists.TMDb.Collection
public override string Name => "TMDb Collection";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override IParseImportListResponse GetParser()
{

View File

@ -22,7 +22,7 @@ namespace NzbDrone.Core.ImportLists.TMDb.List
public override string Name => "TMDb List";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override IParseImportListResponse GetParser()
{

View File

@ -22,7 +22,7 @@ namespace NzbDrone.Core.ImportLists.TMDb.Person
public override string Name => "TMDb Person";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override IParseImportListResponse GetParser()
{

View File

@ -22,7 +22,7 @@ namespace NzbDrone.Core.ImportLists.TMDb.Popular
public override string Name => "TMDb Popular";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override IParseImportListResponse GetParser()
{

View File

@ -10,7 +10,7 @@ namespace NzbDrone.Core.ImportLists.TMDb
public abstract class TMDbImportListBase<TSettings> : HttpImportListBase<TSettings>
where TSettings : TMDbSettingsBase<TSettings>, new()
{
public override ImportListType ListType => ImportListType.TMDB;
public override ImportListSource ListType => ImportListSource.TMDB;
public readonly ISearchForNewMovie _skyhookProxy;
public readonly IHttpRequestBuilderFactory _requestBuilder;

View File

@ -24,7 +24,7 @@ namespace NzbDrone.Core.ImportLists.TMDb.User
public override string Name => "TMDb User";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override IParseImportListResponse GetParser()
{

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Core.ImportLists.Trakt.List
public override string Name => "Trakt List";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override IImportListRequestGenerator GetRequestGenerator()
{

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Core.ImportLists.Trakt.Popular
public override string Name => "Trakt Popular List";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override IParseImportListResponse GetParser()
{

View File

@ -14,7 +14,7 @@ namespace NzbDrone.Core.ImportLists.Trakt
{
public ITraktProxy _traktProxy;
private readonly IImportListRepository _importListRepository;
public override ImportListType ListType => ImportListType.Trakt;
public override ImportListSource ListType => ImportListSource.Trakt;
protected TraktImportBase(IImportListRepository importListRepository,
ITraktProxy traktProxy,

View File

@ -21,7 +21,7 @@ namespace NzbDrone.Core.ImportLists.Trakt.User
public override string Name => "Trakt User";
public override bool Enabled => true;
public override bool EnableAuto => false;
public override ImportListType EnableAuto => ImportListType.Manual;
public override IImportListRequestGenerator GetRequestGenerator()
{

View File

@ -6,13 +6,13 @@ namespace Radarr.Api.V3.ImportLists
public class ImportListResource : ProviderResource
{
public bool Enabled { get; set; }
public bool EnableAuto { get; set; }
public ImportListType EnableAuto { get; set; }
public bool ShouldMonitor { get; set; }
public string RootFolderPath { get; set; }
public int QualityProfileId { get; set; }
public bool SearchOnAdd { get; set; }
public MovieStatusType MinimumAvailability { get; set; }
public ImportListType ListType { get; set; }
public ImportListSource ListType { get; set; }
public int ListOrder { get; set; }
}