Update tvtv.ca.config.js
Added program icons
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user