mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Replaces icon with image
This commit is contained in:
parent
0eaff54a31
commit
bb6771f539
170 changed files with 428 additions and 351 deletions
|
@ -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']
|
||||
}
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue