aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.MediaEncoding.Tests/Probing
diff options
context:
space:
mode:
authormysticalsoap <github@esotericsuds.com>2026-09-15 16:31:24 -0400
committermysticalsoap <github@esotericsuds.com>2026-10-15 17:35:24 -0400
commita92a574be09dc415198ed7e5775ffd9ef2b44a58 (patch)
treea517b698ebb8b3a820576a47789565b7907f09f0 /tests/Jellyfin.MediaEncoding.Tests/Probing
parent2416fb56b4904fcf1fbf561be0c05b37d2d0886f (diff)
Keep container creation time out of the premiere date chain
Diffstat (limited to 'tests/Jellyfin.MediaEncoding.Tests/Probing')
-rw-r--r--tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs b/tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs
index cf9930abe1..e68abf6947 100644
--- a/tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs
+++ b/tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs
@@ -291,6 +291,19 @@ namespace Jellyfin.MediaEncoding.Tests.Probing
}
[Fact]
+ public void GetMediaInfo_ContainerCreationTime_KeptOutOfPremiereDate()
+ {
+ var bytes = File.ReadAllBytes("Test Data/Probing/video_progressive_no_field_order.json");
+
+ var internalMediaInfoResult = JsonSerializer.Deserialize<InternalMediaInfoResult>(bytes, _jsonOptions);
+ MediaInfo res = _probeResultNormalizer.GetMediaInfo(internalMediaInfoResult, VideoType.VideoFile, false, "Test Data/Probing/video_progressive_no_field_order.mp4", MediaProtocol.File);
+
+ Assert.Equal(new DateTime(2020, 1, 20, 13, 56, 34, DateTimeKind.Utc), res.ContainerCreationDate);
+ Assert.Null(res.PremiereDate);
+ Assert.Null(res.ProductionYear);
+ }
+
+ [Fact]
public void GetMediaInfo_ProgressiveVideoNoFieldOrder_Success()
{
var bytes = File.ReadAllBytes("Test Data/Probing/video_progressive_no_field_order.json");