aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorShadowghost <Shadowghost@users.noreply.github.com>2026-09-15 11:13:52 -0400
committerCody Robibero <cody@robibe.ro>2026-09-15 11:13:52 -0400
commit503e0d671b62f2bdd0354a2bdc3daca5dc8d0f3b (patch)
tree5961ef56c72eb4e084f2dca939576ac92a5580e4 /tests
parent3f2b56088307731c836d659c470c9cf21e84bbf5 (diff)
Backport pull request #17859 from jellyfin/release-12.z
Report image resolutions for TMDb images when no image size is configured Original-merge: b2ed322c475d430b0bf71913072006ae997b0233 Merged-by: crobibero <cody@robibe.ro> Backported-by: Cody Robibero <cody@robibe.ro>
Diffstat (limited to 'tests')
-rw-r--r--tests/Jellyfin.Providers.Tests/Tmdb/TmdbUtilsTests.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Jellyfin.Providers.Tests/Tmdb/TmdbUtilsTests.cs b/tests/Jellyfin.Providers.Tests/Tmdb/TmdbUtilsTests.cs
index 8926a7b13c..03bad3555e 100644
--- a/tests/Jellyfin.Providers.Tests/Tmdb/TmdbUtilsTests.cs
+++ b/tests/Jellyfin.Providers.Tests/Tmdb/TmdbUtilsTests.cs
@@ -105,6 +105,19 @@ namespace Jellyfin.Providers.Tests.Tmdb
}
[Theory]
+ // An unconfigured size fetches the original image, so it keeps the original resolution.
+ [InlineData(null, true)]
+ [InlineData("", true)]
+ [InlineData("original", true)]
+ [InlineData("Original", true)]
+ [InlineData("w500", false)]
+ [InlineData("original2", false)]
+ public static void IsOriginalImageSize_Valid_Success(string? size, bool expected)
+ {
+ Assert.Equal(expected, TmdbUtils.IsOriginalImageSize(size));
+ }
+
+ [Theory]
[MemberData(nameof(FindBestMatch_Movies_TestData))]
public static void FindBestMatch_Movies_PicksExpected(string description, string name, int year, IReadOnlyList<SearchMovie> results, int expectedId)
{