From 09723bd123b767b7d99157faa86df0fc305c87ea Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Sun, 7 Jun 2026 22:37:34 +0200 Subject: Aggregate alternate versions via GetAllVersions --- tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs b/tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs index 2ee95f076b..664821815b 100644 --- a/tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs +++ b/tests/Jellyfin.Controller.Tests/Entities/BaseItemTests.cs @@ -82,6 +82,13 @@ public class BaseItemTests [InlineData("Movie (2020).UHD", "Movie (2020).1080p", "UHD", "1080p")] // Resolution variants that share leading digits must retreat to the separator, not yield "p"/"i". [InlineData("Movie - 1080p", "Movie - 1080i", "1080p", "1080i")] + // A token shared by the descriptors but separated only by spaces (the resolution) must stay in the + // label: retreat to the '-' delimiter, not the interior space, so the resolution is kept. + [InlineData( + "movie (2020) - 2160p Extended", + "movie (2020) - 2160p Original", + "2160p Extended", + "2160p Original")] // Bracketed version labels: the opening bracket is kept in the label. [InlineData( "Blade Runner (1982) [Final Cut] [1080p HEVC AAC]", -- cgit v1.2.3