mirror of
https://github.com/iptv-org/epg
synced 2026-09-14 13:06:24 -04:00
Replaces icon with image
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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']
|
||||
}
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user