Apply API changes to listview

This commit is contained in:
ferferga 2020-05-30 17:10:38 +02:00
parent dbcc31e1a4
commit 4368502943

View File

@ -92,8 +92,10 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
options.tag = item.ParentPrimaryImageTag;
itemId = item.ParentPrimaryImageItemId;
}
let blurHashes = item.ImageBlurHashes || {};
let blurhashstr = (blurHashes[options.type] || {})[options.tag];
return { url: apiClient.getScaledImageUrl(itemId, options), blurHash: (item.ImageBlurHashes || {})[options.type][options.tag]};
return { url: apiClient.getScaledImageUrl(itemId, options), blurhash: blurhashstr};
}
function getChannelImageUrl(item, width) {
@ -107,8 +109,10 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
if (item.ChannelId && item.ChannelPrimaryImageTag) {
options.tag = item.ChannelPrimaryImageTag;
}
let blurHashes = item.ImageBlurHashes || {};
let blurhashstr = (blurHashes[options.type])[options.tag];
return { url: apiClient.getScaledImageUrl(item.ChannelId, options), blurhash: (item.ImageBlurHashes || {})[options.type][options.tag]};
return { url: apiClient.getScaledImageUrl(item.ChannelId, options), blurhash: blurhashstr};
}
function getTextLinesHtml(textlines, isLargeStyle) {