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
@@ -47,7 +47,7 @@ module.exports = {
programs.push({
title: item.name,
description: item.introduce,
icon: parseIcon(item),
image: parseImage(item),
category: parseCategory(item),
start: parseStart(item),
stop: parseStop(item)
@@ -102,7 +102,7 @@ function parseCategory(item) {
: []
}
function parseIcon(item) {
function parseImage(item) {
if (!Array.isArray(item.pictures) || !item.pictures.length) return null
return item.pictures[0].href