1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fixes 6576 by rendering the Channel logo image type on the guide instead of primary

This commit is contained in:
Robert Down 2025-02-24 21:36:33 -05:00
parent c99fe4a402
commit f4a6123532

View file

@ -232,7 +232,7 @@ function Guide(options) {
channelQuery.Limit = channelLimit; channelQuery.Limit = channelLimit;
channelQuery.AddCurrentProgram = false; channelQuery.AddCurrentProgram = false;
channelQuery.EnableUserData = false; channelQuery.EnableUserData = false;
channelQuery.EnableImageTypes = 'Primary'; channelQuery.EnableImageTypes = 'Logo';
const categories = self.categoryOptions.categories || []; const categories = self.categoryOptions.categories || [];
const displayMovieContent = !categories.length || categories.indexOf('movies') !== -1; const displayMovieContent = !categories.length || categories.indexOf('movies') !== -1;
@ -591,7 +591,7 @@ function Guide(options) {
let html = ''; let html = '';
for (const channel of channels) { for (const channel of channels) {
const hasChannelImage = channel.ImageTags.Primary; const hasChannelImage = channel.ImageTags.Logo;
let cssClass = 'guide-channelHeaderCell itemAction'; let cssClass = 'guide-channelHeaderCell itemAction';
@ -612,8 +612,8 @@ function Guide(options) {
if (hasChannelImage) { if (hasChannelImage) {
const url = apiClient.getScaledImageUrl(channel.Id, { const url = apiClient.getScaledImageUrl(channel.Id, {
maxHeight: 220, maxHeight: 220,
tag: channel.ImageTags.Primary, tag: channel.ImageTags.Logo,
type: 'Primary' type: 'Logo'
}); });
html += '<div class="guideChannelImage lazy" data-src="' + url + '"></div>'; html += '<div class="guideChannelImage lazy" data-src="' + url + '"></div>';