Release 0.3.4: Jellyfin 12 stable support and audit fixes
Harden proxy permissions and cache behavior, streamline metadata fetching, remove obsolete rules, and validate the stable SDK with expanded regression coverage. Document backup format changes.
This commit is contained in:
1 parent
8f7462fd3c
commit
096c6be8c7
50 files changed
+2126
-1784
No files matched your search
@@ -6,6 +6,24 @@ namespace Jellyfin.Plugin.Multilang.Tests;
|
||||
|
||||
public sealed class CategoryRuleEvaluatorTests
|
||||
{
|
||||
[Fact]
|
||||
public void FastMatchingAndDiagnosticTraceAgreeAcrossAllRuleModes()
|
||||
{
|
||||
foreach (var relation in new[] { "is", "is_not", "contains", "not_contains" })
|
||||
foreach (var fieldOr in new[] { false, true })
|
||||
foreach (var valueOr in new[] { false, true })
|
||||
foreach (var matchAll in new[] { false, true })
|
||||
foreach (var facts in new[] { Facts(originalLanguage: "sv"), Facts(spokenLanguages: ["fi", "en"]), Facts(kind: "tv") })
|
||||
{
|
||||
var rule = Rule("original_language", relation, valueOr, "sv", "fi");
|
||||
rule.Requirements[0].Fields = ["original_language", "spoken_languages"];
|
||||
rule.Requirements[0].UseFieldOr = fieldOr;
|
||||
rule.Requirements = [rule.Requirements[0], Requirement("production_countries", "contains", false, "FI")];
|
||||
rule.MatchAllConditions = matchAll;
|
||||
Assert.Equal(CategoryRuleEvaluator.Trace(rule, facts).Result, CategoryRuleEvaluator.Matches(rule, facts));
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void IsWithAndListRequiresExactSet()
|
||||
{
|
||||
@@ -95,11 +113,9 @@ public sealed class CategoryRuleEvaluatorTests
|
||||
{
|
||||
Id = rule.Id,
|
||||
Label = rule.Label,
|
||||
CriteriaText = rule.CriteriaText,
|
||||
Requirements = rule.Requirements,
|
||||
MatchAllConditions = matchAll,
|
||||
Scopes = rule.Scopes,
|
||||
FieldActions = rule.FieldActions,
|
||||
FieldActionLists = rule.FieldActionLists
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user