mirror of
https://github.com/iptv-org/epg
synced 2026-05-05 00:47:02 -04:00
Replaces icon with image
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = {
|
||||
programs.push({
|
||||
title: item.show.title,
|
||||
description: item.show.body,
|
||||
icon: parseIcon(item),
|
||||
image: parseImage(item),
|
||||
start: parseStart(item, date),
|
||||
stop: parseStop(item, date)
|
||||
})
|
||||
@@ -33,7 +33,7 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
return item.show.image ? item.show.image.href : null
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@ it('can parse response', () => {
|
||||
stop: '2022-03-06T13:28:00.000Z',
|
||||
title: 'تغطية خاصة',
|
||||
description: 'Special Edition',
|
||||
icon: 'https://cdn.i24news.tv/uploads/a1/be/85/20/69/6f/32/1c/ed/b0/f8/5c/f6/1c/40/f9/a1be8520696f321cedb0f85cf61c40f9.png'
|
||||
image:
|
||||
'https://cdn.i24news.tv/uploads/a1/be/85/20/69/6f/32/1c/ed/b0/f8/5c/f6/1c/40/f9/a1be8520696f321cedb0f85cf61c40f9.png'
|
||||
}
|
||||
])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user