Replaces icon with image

This commit is contained in:
freearhey 2024-06-24 16:49:35 +03:00
parent 0eaff54a31
commit bb6771f539
170 changed files with 428 additions and 351 deletions

View file

@ -35,7 +35,7 @@ module.exports = {
url: parseURL(item),
start,
stop,
icon: parseIcon(item)
image: parseImage(item)
})
})
@ -47,7 +47,7 @@ function parseStart(item, date) {
return dayjs.tz(`${date.format('YYYY-MM-DD')} ${item.hour}`, 'YYYY-MM-DD HH:mm', 'Europe/Rome')
}
function parseIcon(item) {
function parseImage(item) {
let cover = null
if (item.image) {
cover = `https://www.raiplay.it${item.image}`