aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-02-22 12:37:14 +0100
committerShadowghost <Ghost_of_Stone@web.de>2026-02-22 12:37:14 +0100
commitd63b2b2657763112fb1581a667c111e3930889f2 (patch)
tree5d7fd4a78dcbf27084cd08957cc56022d2504c0a /src
parented43ad09688d11ed09b9b45be409455c33bc0e6a (diff)
Apply review suggestion
Diffstat (limited to 'src')
-rw-r--r--src/Jellyfin.LiveTv/Guide/GuideManager.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Jellyfin.LiveTv/Guide/GuideManager.cs b/src/Jellyfin.LiveTv/Guide/GuideManager.cs
index 7e1992baf2..47aa31c0f6 100644
--- a/src/Jellyfin.LiveTv/Guide/GuideManager.cs
+++ b/src/Jellyfin.LiveTv/Guide/GuideManager.cs
@@ -742,9 +742,13 @@ public class GuideManager : IGuideManager
private async Task PreCacheImages(IReadOnlyList<BaseItem> programs, DateTime maxCacheDate)
{
+ var sdLimitActive = IsSdImageLimitActive();
+
await Parallel.ForEachAsync(
programs
.Where(p => p.EndDate.HasValue && p.EndDate.Value < maxCacheDate)
+ .Where(p => !sdLimitActive || !p.ImageInfos.All(
+ img => img.IsLocalFile || img.Path.Contains("schedulesdirect", StringComparison.OrdinalIgnoreCase)))
.DistinctBy(p => p.Id),
_cacheParallelOptions,
async (program, cancellationToken) =>