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
|
@ -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'
|
||||
}
|
||||
])
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue