diff options
| author | GOvEy1nw <45126527+GOvEy1nw@users.noreply.github.com> | 2026-07-30 09:20:01 +0100 |
|---|---|---|
| committer | GOvEy1nw <45126527+GOvEy1nw@users.noreply.github.com> | 2026-07-30 09:20:01 +0100 |
| commit | 0915a61c19452e878b955fcb9cc8cb76f72c43a7 (patch) | |
| tree | e1af5f155a165d96efae6a80d235dfa31e5869be /tests/Jellyfin.Server.Integration.Tests/ImageProcessorTests.cs | |
| parent | 3da05330b27dd94773c7fc1de0d44a65d0a978a7 (diff) | |
fix(images): narrow cache path test seam
Diffstat (limited to 'tests/Jellyfin.Server.Integration.Tests/ImageProcessorTests.cs')
| -rw-r--r-- | tests/Jellyfin.Server.Integration.Tests/ImageProcessorTests.cs | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/tests/Jellyfin.Server.Integration.Tests/ImageProcessorTests.cs b/tests/Jellyfin.Server.Integration.Tests/ImageProcessorTests.cs index 1307a36f06..a1149ac9be 100644 --- a/tests/Jellyfin.Server.Integration.Tests/ImageProcessorTests.cs +++ b/tests/Jellyfin.Server.Integration.Tests/ImageProcessorTests.cs @@ -105,20 +105,27 @@ public sealed class ImageProcessorTests : IDisposable } private string GetCacheFilePath(double percentPlayed = 0, int? unwatchedCount = null) - => _imageProcessor.GetCacheFilePath( + { + var options = new ImageProcessingOptions + { + Width = 200, + Height = 300, + MaxWidth = 400, + MaxHeight = 500, + FillWidth = 600, + FillHeight = 700, + Quality = 90, + PercentPlayed = percentPlayed, + UnplayedCount = unwatchedCount, + Blur = 2, + BackgroundColor = "000000", + ForegroundLayer = "layer" + }; + + return _imageProcessor.GetCacheFilePath( OriginalPath, - width: 200, - height: 300, - maxWidth: 400, - maxHeight: 500, - fillWidth: 600, - fillHeight: 700, - quality: 90, - dateModified: _dateModified, - format: ImageFormat.Jpg, - percentPlayed, - unwatchedCount, - blur: 2, - backgroundColor: "000000", - foregroundLayer: "layer"); + _dateModified, + ImageFormat.Jpg, + options); + } } |
