mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update guidatv.sky.it.config.js
Added program icons
This commit is contained in:
parent
90a0c1dce4
commit
a83a1e05a3
1 changed files with 7 additions and 1 deletions
|
@ -24,12 +24,18 @@ module.exports = {
|
||||||
|
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
if (item.eventTitle && item.starttime && item.endtime) {
|
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({
|
programs.push({
|
||||||
title: item.eventTitle,
|
title: item.eventTitle,
|
||||||
description: item.eventSynopsis,
|
description: item.eventSynopsis,
|
||||||
category: item.content.genre.name,
|
category: item.content.genre.name,
|
||||||
start: item.starttime,
|
start: item.starttime,
|
||||||
stop: item.endtime
|
stop: item.endtime,
|
||||||
|
icon
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue