mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Remove Newznab & Torznab Anime Categories Setting
This commit is contained in:
parent
2938bfee2c
commit
7c3446baab
2 changed files with 6 additions and 10 deletions
|
@ -39,9 +39,9 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||||
{
|
{
|
||||||
Custom(newznab =>
|
Custom(newznab =>
|
||||||
{
|
{
|
||||||
if (newznab.Categories.Empty() && newznab.AnimeCategories.Empty())
|
if (newznab.Categories.Empty())
|
||||||
{
|
{
|
||||||
return new ValidationFailure("", "Either 'Categories' or 'Anime Categories' must be provided");
|
return new ValidationFailure("", "'Categories' must be provided");
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -61,7 +61,6 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||||
public NewznabSettings()
|
public NewznabSettings()
|
||||||
{
|
{
|
||||||
Categories = new[] { 3000, 3010, 3020, 3030, 3040 };
|
Categories = new[] { 3000, 3010, 3020, 3030, 3040 };
|
||||||
AnimeCategories = Enumerable.Empty<int>();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[FieldDefinition(0, Label = "URL")]
|
[FieldDefinition(0, Label = "URL")]
|
||||||
|
@ -73,9 +72,6 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||||
[FieldDefinition(2, Label = "Categories", HelpText = "Comma Separated list, leave blank to disable standard/daily shows", Advanced = true)]
|
[FieldDefinition(2, Label = "Categories", HelpText = "Comma Separated list, leave blank to disable standard/daily shows", Advanced = true)]
|
||||||
public IEnumerable<int> Categories { get; set; }
|
public IEnumerable<int> Categories { get; set; }
|
||||||
|
|
||||||
[FieldDefinition(3, Label = "Anime Categories", HelpText = "Comma Separated list, leave blank to disable anime", Advanced = true)]
|
|
||||||
public IEnumerable<int> AnimeCategories { get; set; }
|
|
||||||
|
|
||||||
[FieldDefinition(4, Label = "Additional Parameters", HelpText = "Additional Newznab parameters", Advanced = true)]
|
[FieldDefinition(4, Label = "Additional Parameters", HelpText = "Additional Newznab parameters", Advanced = true)]
|
||||||
public string AdditionalParameters { get; set; }
|
public string AdditionalParameters { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,9 @@ namespace NzbDrone.Core.Indexers.Torznab
|
||||||
{
|
{
|
||||||
Custom(newznab =>
|
Custom(newznab =>
|
||||||
{
|
{
|
||||||
if (newznab.Categories.Empty() && newznab.AnimeCategories.Empty())
|
if (newznab.Categories.Empty())
|
||||||
{
|
{
|
||||||
return new ValidationFailure("", "Either 'Categories' or 'Anime Categories' must be provided");
|
return new ValidationFailure("", "'Categories' must be provided");
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue