diff options
| author | gnattu <gnattu@users.noreply.github.com> | 2025-02-03 16:55:58 -0500 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2025-02-03 16:55:58 -0500 |
| commit | 144e62027de1776baa183016741316287a5ae764 (patch) | |
| tree | 306b931401dd2b776bdedb2c3ab70cd1888b7455 | |
| parent | 4c174983690c184fd6614d512a720b74ef7da789 (diff) | |
Backport pull request #13183 from jellyfin/release-10.10.z
Don't generate trickplay for backdrops
Original-merge: 80940c0c57bc180d88b57da5b797fef949f85200
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Bond_009 <bond.009@outlook.com>
| -rw-r--r-- | Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs index dfc63b63f..5d209b0af 100644 --- a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs +++ b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs @@ -194,6 +194,14 @@ public class TrickplayManager : ITrickplayManager return; } + // We support video backdrops, but we should not generate trickplay images for them + var parentDirectory = Directory.GetParent(mediaPath); + if (parentDirectory is not null && string.Equals(parentDirectory.Name, "backdrops", StringComparison.OrdinalIgnoreCase)) + { + _logger.LogDebug("Ignoring backdrop media found at {Path} for item {ItemID}", mediaPath, video.Id); + return; + } + // The width has to be even, otherwise a lot of filters will not be able to sample it var actualWidth = 2 * (width / 2); |
