From a92a574be09dc415198ed7e5775ffd9ef2b44a58 Mon Sep 17 00:00:00 2001 From: mysticalsoap Date: Tue, 15 Sep 2026 16:31:24 -0400 Subject: Keep container creation time out of the premiere date chain --- .../Probing/ProbeResultNormalizerTests.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs') 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 @@ -290,6 +290,19 @@ namespace Jellyfin.MediaEncoding.Tests.Probing Assert.Equal(3, res.MediaStreams.Count); } + [Fact] + public void GetMediaInfo_ContainerCreationTime_KeptOutOfPremiereDate() + { + var bytes = File.ReadAllBytes("Test Data/Probing/video_progressive_no_field_order.json"); + + var internalMediaInfoResult = JsonSerializer.Deserialize(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() { -- cgit v1.2.3