Update guidatv.sky.it.config.js

Added program icons
This commit is contained in:
freearhey 2021-04-14 00:23:27 +03:00
parent 90a0c1dce4
commit a83a1e05a3

View file

@ -24,12 +24,18 @@ module.exports = {
items.forEach(item => {
if (item.eventTitle && item.starttime && item.endtime) {
const cover = item.content.imagesMap
? item.content.imagesMap.find(i => i.key === 'cover')
: null
const icon =
cover && cover.img && cover.img.url ? `https://guidatv.sky.it${cover.img.url}` : null
programs.push({
title: item.eventTitle,
description: item.eventSynopsis,
category: item.content.genre.name,
start: item.starttime,
stop: item.endtime
stop: item.endtime,
icon
})
}
})