Use square shape for homevideos items in home sections

This commit is contained in:
MrTimscampi 2020-04-26 10:19:10 +02:00
parent 4113f001cb
commit fcb6808a9f

View File

@ -243,9 +243,11 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
return function (items) {
var cardLayout = false;
var shape;
console.warn(viewType);
console.warn(itemType);
if (itemType === 'Channel' || viewType === 'movies' || viewType === 'books' || viewType === 'tvshows') {
shape = getPortraitShape();
} else if (viewType === 'music') {
} else if (viewType === 'music' || viewType === 'homevideos') {
shape = getSquareShape();
} else {
shape = getThumbShape();