aboutsummaryrefslogtreecommitdiff
path: root/src/Jellyfin.LiveTv/Guide
diff options
context:
space:
mode:
authortheguymadmax <theguymadmax@proton.me>2026-08-05 13:18:08 -0400
committertheguymadmax <theguymadmax@proton.me>2026-08-05 14:02:28 -0400
commitf49a501f71b22b02826c13fad2fc4ebaf82ee3ec (patch)
tree661e717caa7853928e29ec9463f6e574e566d384 /src/Jellyfin.LiveTv/Guide
parentf6ca06e9bfa890f8ab31afd3705f5df2c58ed510 (diff)
Revert "Refresh Live TV channel icons on every guide update."
This reverts commit 372c1681d8272c6fa8f120a132bc40351067fb10.
Diffstat (limited to 'src/Jellyfin.LiveTv/Guide')
-rw-r--r--src/Jellyfin.LiveTv/Guide/GuideManager.cs19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/Jellyfin.LiveTv/Guide/GuideManager.cs b/src/Jellyfin.LiveTv/Guide/GuideManager.cs
index 4e1b62cdf9..41520f8789 100644
--- a/src/Jellyfin.LiveTv/Guide/GuideManager.cs
+++ b/src/Jellyfin.LiveTv/Guide/GuideManager.cs
@@ -5,7 +5,6 @@ using System.Threading;
using System.Threading.Tasks;
using Jellyfin.Data.Enums;
using Jellyfin.Extensions;
-using Jellyfin.LiveTv;
using Jellyfin.LiveTv.Configuration;
using Jellyfin.LiveTv.Listings;
using MediaBrowser.Common.Configuration;
@@ -450,9 +449,23 @@ public class GuideManager : IGuideManager
item.Name = channelInfo.Name;
- if (LiveTvChannelImageHelper.UpdateChannelImageIfNeeded(item, channelInfo.ImagePath, channelInfo.ImageUrl))
+ var currentPrimary = item.GetImageInfo(ImageType.Primary, 0);
+ var imageUrlIsNull = string.IsNullOrWhiteSpace(channelInfo.ImageUrl);
+
+ // Update channel image if image URL has changed
+ if (currentPrimary is null
+ || (!imageUrlIsNull && !string.Equals(currentPrimary.Path, channelInfo.ImageUrl, StringComparison.Ordinal)))
{
- forceUpdate = true;
+ if (!string.IsNullOrWhiteSpace(channelInfo.ImagePath))
+ {
+ item.SetImagePath(ImageType.Primary, channelInfo.ImagePath);
+ forceUpdate = true;
+ }
+ else if (!imageUrlIsNull)
+ {
+ item.SetImagePath(ImageType.Primary, channelInfo.ImageUrl);
+ forceUpdate = true;
+ }
}
if (isNew)