From 5c898a98f58e98a4a65556ad2ee59dbb70fb1d08 Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Sat, 17 Jan 2026 21:23:50 +0100 Subject: [PATCH] Use place holders for channel titles --- Jellyfin.Plugin.SRFPlay/Channels/SRFPlayChannel.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jellyfin.Plugin.SRFPlay/Channels/SRFPlayChannel.cs b/Jellyfin.Plugin.SRFPlay/Channels/SRFPlayChannel.cs index b8625c8..88b02ad 100644 --- a/Jellyfin.Plugin.SRFPlay/Channels/SRFPlayChannel.cs +++ b/Jellyfin.Plugin.SRFPlay/Channels/SRFPlayChannel.cs @@ -200,7 +200,9 @@ public class SRFPlayChannel : IChannel, IHasCacheKey continue; } - items.Add(CreateFolder($"category_{topic.Id}", topic.Title ?? topic.Id!, topic.Lead)); + // Generate placeholder image for topic + var placeholderUrl = CreatePlaceholderImageUrl(topic.Title ?? topic.Id!, _mediaSourceFactory.GetServerBaseUrl()); + items.Add(CreateFolder($"category_{topic.Id}", topic.Title ?? topic.Id!, topic.Lead, placeholderUrl)); } _logger.LogInformation("Added {Count} category folders", topics.Count); @@ -214,7 +216,7 @@ public class SRFPlayChannel : IChannel, IHasCacheKey return items; } - private static ChannelItemInfo CreateFolder(string id, string name, string? overview = null) + private static ChannelItemInfo CreateFolder(string id, string name, string? overview = null, string? imageUrl = null) { return new ChannelItemInfo { @@ -222,7 +224,7 @@ public class SRFPlayChannel : IChannel, IHasCacheKey Name = name, Type = ChannelItemType.Folder, FolderType = ChannelFolderType.Container, - ImageUrl = null, + ImageUrl = imageUrl, Overview = overview }; }