mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 10:48:26 +00:00
myanonamouse: prevent error with null as default search languages value
Fixes #161
This commit is contained in:
parent
33aee9c4ab
commit
5b65e4aab6
2 changed files with 8 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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<string>()
|
||||
};
|
||||
|
||||
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.");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue