diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-11 18:00:41 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-11 18:00:41 +0200 |
| commit | 60e01e1f22fa6fc3505469abd96d85d64b05fac1 (patch) | |
| tree | d39c4ffea1c36735013f95ef69d20536ad354a42 /src/Jellyfin.LiveTv/Guide | |
| parent | e0f50f504afe5713f64d644a464f39e903d9ef6b (diff) | |
Apply review suggestions
Diffstat (limited to 'src/Jellyfin.LiveTv/Guide')
| -rw-r--r-- | src/Jellyfin.LiveTv/Guide/GuideManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Jellyfin.LiveTv/Guide/GuideManager.cs b/src/Jellyfin.LiveTv/Guide/GuideManager.cs index a659cc020b..556516674b 100644 --- a/src/Jellyfin.LiveTv/Guide/GuideManager.cs +++ b/src/Jellyfin.LiveTv/Guide/GuideManager.cs @@ -738,6 +738,14 @@ public class GuideManager : IGuideManager _cacheParallelOptions, async (program, cancellationToken) => { + // Re-check: limit may have been set by a parallel task since the LINQ filter ran. + if (_schedulesDirectService.IsImageDailyLimitActive() + && program.ImageInfos.All( + img => img.IsLocalFile || img.Path.Contains("schedulesdirect", StringComparison.OrdinalIgnoreCase))) + { + return; + } + for (var i = 0; i < program.ImageInfos.Length; i++) { if (cancellationToken.IsCancellationRequested) |
