Update tvtv.us.config.js

Added program icons
This commit is contained in:
freearhey 2021-04-14 00:23:37 +03:00
parent 93746cf20e
commit 39781e420d

View file

@ -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
}) })
}) })