Fixed: MultiLanguages definition

This commit is contained in:
ta264 2019-10-14 22:47:23 +01:00 committed by Qstick
parent b5b43b8b3f
commit 2a15113a74
10 changed files with 11 additions and 14 deletions

View File

@ -28,7 +28,7 @@ namespace NzbDrone.Core.Indexers.AwesomeHD
{
BaseUrl = "https://awesome-hd.me";
MinimumSeeders = 0;
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "API URL", Advanced = true, HelpText = "Do not change this unless you know what you're doing. Since you Passkey will be sent to that host.")]

View File

@ -34,7 +34,7 @@ namespace NzbDrone.Core.Indexers.HDBits
Categories = new int[] { (int)HdBitsCategory.Movie };
Codecs = new int[0];
Mediums = new int[0];
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "Username")]

View File

@ -35,7 +35,7 @@ namespace NzbDrone.Core.Indexers.IPTorrents
{
BaseUrl = string.Empty;
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "Feed URL", HelpText = "The full RSS feed url generated by IPTorrents, using only the categories you selected (HD, SD, x264, etc ...)")]

View File

@ -2,11 +2,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using FluentValidation;
using FluentValidation.Results;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.Parser;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
namespace NzbDrone.Core.Indexers.Newznab
@ -62,8 +59,8 @@ namespace NzbDrone.Core.Indexers.Newznab
{
ApiPath = "/api";
Categories = new[] { 2000, 2010, 2020, 2030, 2035, 2040, 2045, 2050, 2060 };
AnimeCategories = Enumerable.Empty<int>();
MultiLanguages = Enumerable.Empty<int>();
AnimeCategories = new List<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "URL")]

View File

@ -29,7 +29,7 @@ namespace NzbDrone.Core.Indexers.Nyaa
BaseUrl = "http://www.nyaa.se";
AdditionalParameters = "&cats=1_37&filter=1";
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "Website URL")]

View File

@ -25,7 +25,7 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs
public OmgwtfnzbsSettings()
{
Delay = 30;
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
// Unused since Omg has a hardcoded url.

View File

@ -30,7 +30,7 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
{
BaseUrl = "https://passthepopcorn.me";
MinimumSeeders = 0;
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "URL", Advanced = true, HelpText = "Do not change this unless you know what you're doing. Since your cookie will be sent to that host.")]

View File

@ -30,7 +30,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
RankedOnly = false;
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
Categories = new[] { 14, 48, 17, 44, 45, 47, 50, 51, 52, 42, 46 };
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "API URL", HelpText = "URL to Rarbg api, not the website.")]

View File

@ -27,7 +27,7 @@ namespace NzbDrone.Core.Indexers.TorrentPotato
{
BaseUrl = "http://127.0.0.1";
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "API URL", HelpText = "URL to TorrentPotato api.")]

View File

@ -27,7 +27,7 @@ namespace NzbDrone.Core.Indexers.TorrentRss
BaseUrl = string.Empty;
AllowZeroSize = false;
MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS;
MultiLanguages = Enumerable.Empty<int>();
MultiLanguages = new List<int>();
}
[FieldDefinition(0, Label = "Full RSS Feed URL")]