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

@ -18,7 +18,7 @@ module.exports = {
programs.push({
title: item.title,
description: item.shortSynopsis,
icon: parseIcon(item),
image: parseImage(item),
category: item.tags,
season: item.season,
episode: item.episode,
@ -59,7 +59,7 @@ function parseStop(item) {
return dayjs(item.published.end)
}
function parseIcon(item) {
function parseImage(item) {
return item.posterImage ? item.posterImage + '?form=epg-card-6' : null
}

View file

@ -35,7 +35,8 @@ it('can parse response', () => {
'Symphony of Illumination - Robin gets some bad news and decides to keep it to herself. Marshall decorates the house.',
season: 7,
episode: 12,
icon: 'https://androme.melitacable.com/media/images/epg/bc/07/p8953134_e_h10_ad.jpg?form=epg-card-6',
image:
'https://androme.melitacable.com/media/images/epg/bc/07/p8953134_e_h10_ad.jpg?form=epg-card-6',
category: ['comedy']
}
])