From 2a15113a744e58fa33c8c7507c2e2d6ac93c9888 Mon Sep 17 00:00:00 2001 From: ta264 Date: Mon, 14 Oct 2019 22:47:23 +0100 Subject: [PATCH] Fixed: MultiLanguages definition --- src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs | 2 +- src/NzbDrone.Core/Indexers/HDBits/HDBitsSettings.cs | 2 +- .../Indexers/IPTorrents/IPTorrentsSettings.cs | 2 +- src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs | 7 ++----- src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs | 2 +- .../Indexers/Omgwtfnzbs/OmgwtfnzbsSettings.cs | 2 +- .../Indexers/PassThePopcorn/PassThePopcornSettings.cs | 2 +- src/NzbDrone.Core/Indexers/Rarbg/RarbgSettings.cs | 2 +- .../Indexers/TorrentPotato/TorrentPotatoSettings.cs | 2 +- .../Indexers/TorrentRss/TorrentRssIndexerSettings.cs | 2 +- 10 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs index 2948942f2..efa8fb475 100644 --- a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs +++ b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs @@ -28,7 +28,7 @@ namespace NzbDrone.Core.Indexers.AwesomeHD { BaseUrl = "https://awesome-hd.me"; MinimumSeeders = 0; - MultiLanguages = Enumerable.Empty(); + MultiLanguages = new List(); } [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.")] diff --git a/src/NzbDrone.Core/Indexers/HDBits/HDBitsSettings.cs b/src/NzbDrone.Core/Indexers/HDBits/HDBitsSettings.cs index 23270e5d1..492f7c162 100644 --- a/src/NzbDrone.Core/Indexers/HDBits/HDBitsSettings.cs +++ b/src/NzbDrone.Core/Indexers/HDBits/HDBitsSettings.cs @@ -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(); + MultiLanguages = new List(); } [FieldDefinition(0, Label = "Username")] diff --git a/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs b/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs index 328c96b89..7d8b2c72c 100644 --- a/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs +++ b/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsSettings.cs @@ -35,7 +35,7 @@ namespace NzbDrone.Core.Indexers.IPTorrents { BaseUrl = string.Empty; MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS; - MultiLanguages = Enumerable.Empty(); + MultiLanguages = new List(); } [FieldDefinition(0, Label = "Feed URL", HelpText = "The full RSS feed url generated by IPTorrents, using only the categories you selected (HD, SD, x264, etc ...)")] diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs index 0544bc7de..8b747203b 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs @@ -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(); - MultiLanguages = Enumerable.Empty(); + AnimeCategories = new List(); + MultiLanguages = new List(); } [FieldDefinition(0, Label = "URL")] diff --git a/src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs b/src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs index 65aa4cdbb..3e737eeed 100644 --- a/src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs +++ b/src/NzbDrone.Core/Indexers/Nyaa/NyaaSettings.cs @@ -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(); + MultiLanguages = new List(); } [FieldDefinition(0, Label = "Website URL")] diff --git a/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsSettings.cs b/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsSettings.cs index f32069797..ad71558ed 100644 --- a/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsSettings.cs +++ b/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsSettings.cs @@ -25,7 +25,7 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs public OmgwtfnzbsSettings() { Delay = 30; - MultiLanguages = Enumerable.Empty(); + MultiLanguages = new List(); } // Unused since Omg has a hardcoded url. diff --git a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornSettings.cs b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornSettings.cs index 75eed989c..5c1f63135 100644 --- a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornSettings.cs +++ b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornSettings.cs @@ -30,7 +30,7 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn { BaseUrl = "https://passthepopcorn.me"; MinimumSeeders = 0; - MultiLanguages = Enumerable.Empty(); + MultiLanguages = new List(); } [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.")] diff --git a/src/NzbDrone.Core/Indexers/Rarbg/RarbgSettings.cs b/src/NzbDrone.Core/Indexers/Rarbg/RarbgSettings.cs index 38baf4b9c..4df1bb6f0 100644 --- a/src/NzbDrone.Core/Indexers/Rarbg/RarbgSettings.cs +++ b/src/NzbDrone.Core/Indexers/Rarbg/RarbgSettings.cs @@ -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(); + MultiLanguages = new List(); } [FieldDefinition(0, Label = "API URL", HelpText = "URL to Rarbg api, not the website.")] diff --git a/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoSettings.cs b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoSettings.cs index c420086df..8069ba36c 100644 --- a/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoSettings.cs +++ b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoSettings.cs @@ -27,7 +27,7 @@ namespace NzbDrone.Core.Indexers.TorrentPotato { BaseUrl = "http://127.0.0.1"; MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS; - MultiLanguages = Enumerable.Empty(); + MultiLanguages = new List(); } [FieldDefinition(0, Label = "API URL", HelpText = "URL to TorrentPotato api.")] diff --git a/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssIndexerSettings.cs b/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssIndexerSettings.cs index 24b714b91..f9cd9b57a 100644 --- a/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssIndexerSettings.cs +++ b/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssIndexerSettings.cs @@ -27,7 +27,7 @@ namespace NzbDrone.Core.Indexers.TorrentRss BaseUrl = string.Empty; AllowZeroSize = false; MinimumSeeders = IndexerDefaults.MINIMUM_SEEDERS; - MultiLanguages = Enumerable.Empty(); + MultiLanguages = new List(); } [FieldDefinition(0, Label = "Full RSS Feed URL")]