diff --git a/src/Jackett.Common/Indexers/Definitions/MyAnonamouse.cs b/src/Jackett.Common/Indexers/Definitions/MyAnonamouse.cs index 332fcb960..6fca98a35 100644 --- a/src/Jackett.Common/Indexers/Definitions/MyAnonamouse.cs +++ b/src/Jackett.Common/Indexers/Definitions/MyAnonamouse.cs @@ -230,7 +230,9 @@ namespace Jackett.Common.Indexers.Definitions if (configData.SearchLanguages.Values is { Length: > 0 }) { - foreach (var (language, index) in configData.SearchLanguages.Values.Select((value, index) => (value, index))) + var searchLanguages = configData.SearchLanguages.Values.Where(l => l != null); + + foreach (var (language, index) in searchLanguages.Select((value, index) => (value, index))) { parameters.Set($"tor[browse_lang][{index}]", language); } diff --git a/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataMyAnonamouse.cs b/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataMyAnonamouse.cs index 59d953d49..19a707d07 100644 --- a/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataMyAnonamouse.cs +++ b/src/Jackett.Common/Models/IndexerConfig/Bespoke/ConfigurationDataMyAnonamouse.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; @@ -102,7 +103,10 @@ namespace Jackett.Common.Models.IndexerConfig.Bespoke { "15", "Urdu" }, { "13", "Vietnamese" }, { "47", "Other" } - }); + }) + { + Values = Array.Empty() + }; AccountActivity = new DisplayInfoConfigurationItem("Account Inactivity", "To prevent your account from being disabled for inactivity, you must log in on a regular basis. You must also use your account - if you do not, your account will be disabled. If you know that you will not be able to login for an extended period of time, you can park your account in your preferences and it will not be disabled."); }