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