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
|
@ -16,7 +16,7 @@ module.exports = {
|
|||
programs.push({
|
||||
title: item.Title,
|
||||
description: item.Description,
|
||||
icon: parseIcon(item),
|
||||
image: parseImage(item),
|
||||
start: parseTime(item.Start),
|
||||
stop: parseTime(item.End)
|
||||
})
|
||||
|
@ -42,7 +42,7 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
return item.Images?.VideoFrame?.[0]?.Url
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,8 @@ it('can parse response', () => {
|
|||
title: 'Willax noticias edición central',
|
||||
description:
|
||||
'Edición central con el desarrollo y cobertura noticiosa de todos los acontecimientos nacionales e internacionales.',
|
||||
icon: 'http://media.gvp.telefonica.com/storagearea0/IMAGES/00/13/00/13003906_281B2DAB18B01955.jpg'
|
||||
image:
|
||||
'http://media.gvp.telefonica.com/storagearea0/IMAGES/00/13/00/13003906_281B2DAB18B01955.jpg'
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue