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
@@ -13,6 +13,22 @@ public sealed class ItemsProxyTransformerResolutionTests
|
||||
private const string OriginalAction = "Original";
|
||||
private const string LanguagePrefix = "Language:";
|
||||
|
||||
[Fact]
|
||||
public void TraceUsesStoredOriginalTranslationWhenOriginalTitleIsEmpty()
|
||||
{
|
||||
var facts = Facts(originalTitle: "", originalLanguage: "fi");
|
||||
var translations = TextTranslations((OriginalAction, TitleField, "Alkuperainen nimi"));
|
||||
var attempts = new List<ItemsProxyResolutionAttempt>();
|
||||
var normal = ItemsProxyTransformer.ResolveField(TitleField, [OriginalAction], facts, translations);
|
||||
var traced = ItemsProxyTransformer.ResolveField(TitleField, [OriginalAction], facts, translations, attempts.Add);
|
||||
Assert.Equal(normal, traced);
|
||||
Assert.Equal("fi", traced.Language);
|
||||
var chosen = Assert.Single(attempts);
|
||||
Assert.True(chosen.Chosen);
|
||||
Assert.Equal("Original/title", chosen.LookupKey);
|
||||
Assert.Equal(traced.Value, chosen.Value);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ResolveFieldUsesFirstLanguageWithData()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user