mirror of
https://github.com/iptv-org/epg
synced 2026-05-01 06:56:59 -04:00
Replaces icon with image
This commit is contained in:
@@ -47,7 +47,7 @@ const config = {
|
||||
title: item.name,
|
||||
category: parseCategory(item),
|
||||
description: parseDescription(item),
|
||||
icon: parseIcon(item),
|
||||
image: parseImage(item),
|
||||
start: parseStart(item),
|
||||
stop: parseStop(item)
|
||||
})
|
||||
@@ -93,7 +93,7 @@ function parseStop(item) {
|
||||
return dayjs(parseInt(item.endTimestamp))
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
return item.images && item.images[0] ? `https://tv2go.t-2.net${item.images[0].url}` : null
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ it('can parse response', () => {
|
||||
category: ['Informativni'],
|
||||
description:
|
||||
'Dnevnik Slovencev v Italiji je informativna oddaja, v kateri novinarji poročajo predvsem o dnevnih dogodkih med Slovenci v Italiji.',
|
||||
icon: 'https://tv2go.t-2.net/static/media/img/epg/max_crop/EPG_IMG_2927405.jpg'
|
||||
image: 'https://tv2go.t-2.net/static/media/img/epg/max_crop/EPG_IMG_2927405.jpg'
|
||||
}
|
||||
])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user