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 }; }