Replaces icon with image

This commit is contained in:
freearhey
2024-06-24 16:49:35 +03:00
parent 0eaff54a31
commit bb6771f539
170 changed files with 428 additions and 351 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ module.exports = {
programs.push({
title: item.title,
description: item.description,
icon: getIcon(item),
image: getImage(item),
start: getStart(item),
stop: getStop(item)
})
@@ -52,7 +52,7 @@ module.exports = {
}
}
function getIcon(item) {
function getImage(item) {
const image = item.images.find(i => i.type === 'default' && i.sizeTag === '1200x630')
return image ? image.url : null