mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 17:10:07 -04:00
Update tvtv.ca.config.js
Added program icons
This commit is contained in:
parent
649d5d3a8d
commit
93746cf20e
1 changed files with 5 additions and 1 deletions
|
@ -20,12 +20,16 @@ module.exports = {
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
const start = dayjs.utc(item.listDateTime)
|
const start = dayjs.utc(item.listDateTime)
|
||||||
const stop = start.add(item.duration, 'm')
|
const stop = start.add(item.duration, 'm')
|
||||||
|
const icon = item.showPicture
|
||||||
|
? `https://cdn.tvpassport.com/image/show/480x720/${item.showPicture}`
|
||||||
|
: null
|
||||||
programs.push({
|
programs.push({
|
||||||
title: item.showName,
|
title: item.showName,
|
||||||
description: item.description,
|
description: item.description,
|
||||||
category: item.showType,
|
category: item.showType,
|
||||||
start: start.toString(),
|
start: start.toString(),
|
||||||
stop: stop.toString()
|
stop: stop.toString(),
|
||||||
|
icon
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue