Fixed: Don't Add if Indexer doesn't support Apps categories

This commit is contained in:
Qstick
2021-03-01 22:20:06 -05:00
parent 696489731b
commit 39b9381f77
9 changed files with 66 additions and 29 deletions
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using FluentValidation;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
namespace NzbDrone.Core.Applications.Readarr
@@ -15,7 +15,7 @@ namespace NzbDrone.Core.Applications.Readarr
}
}
public class ReadarrSettings : IProviderConfig
public class ReadarrSettings : IApplicationSettings
{
private static readonly ReadarrSettingsValidator Validator = new ReadarrSettingsValidator();
@@ -23,8 +23,11 @@ namespace NzbDrone.Core.Applications.Readarr
{
ProwlarrUrl = "http://localhost:9696";
BaseUrl = "http://localhost:8787";
SyncCategories = new[] { 7000, 7010, 7020, 7030, 7040, 7050, 7060 };
}
public IEnumerable<int> SyncCategories { get; set; }
[FieldDefinition(0, Label = "Prowlarr Server", HelpText = "Prowlarr server URL as Readarr sees it, including http(s):// and port if needed")]
public string ProwlarrUrl { get; set; }