From 3b6e00302905ccdd7c73e62b2a0cc3d99d0115ce Mon Sep 17 00:00:00 2001 From: SenorSmartyPants Date: Tue, 9 Aug 2022 12:09:29 -0500 Subject: [PATCH] Add 404p Resolution Text --- MediaBrowser.Model/Entities/MediaStream.cs | 2 ++ tests/Jellyfin.Model.Tests/Entities/MediaStreamTests.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index c05f836325..ae8f3b0edf 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -596,6 +596,8 @@ namespace MediaBrowser.Model.Entities <= 640 when Height <= 360 => IsInterlaced ? "360i" : "360p", // 682x384 (16:9 square pixel format) <= 682 when Height <= 384 => IsInterlaced ? "384i" : "384p", + // 720x404 (16:9 square pixel format) + <= 720 when Height <= 404 => IsInterlaced ? "404i" : "404p", // 854x480 (16:9 square pixel format) <= 854 when Height <= 480 => IsInterlaced ? "480i" : "480p", // 960x544 (16:9 square pixel format) diff --git a/tests/Jellyfin.Model.Tests/Entities/MediaStreamTests.cs b/tests/Jellyfin.Model.Tests/Entities/MediaStreamTests.cs index 8f033973ec..80c38affe1 100644 --- a/tests/Jellyfin.Model.Tests/Entities/MediaStreamTests.cs +++ b/tests/Jellyfin.Model.Tests/Entities/MediaStreamTests.cs @@ -133,8 +133,8 @@ namespace Jellyfin.Model.Tests.Entities [InlineData(624, 352, false, "360p")] [InlineData(640, 352, false, "360p")] [InlineData(640, 480, false, "480p")] - [InlineData(704, 396, false, "480p")] - [InlineData(720, 404, false, "480p")] + [InlineData(704, 396, false, "404p")] + [InlineData(720, 404, false, "404p")] [InlineData(720, 480, false, "480p")] [InlineData(720, 576, false, "576p")] [InlineData(768, 576, false, "576p")]