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
|
@ -22,7 +22,7 @@ module.exports = {
|
|||
title: item.title,
|
||||
category: item.category,
|
||||
description: parseDescription(item),
|
||||
icon: parseIcon(item),
|
||||
image: parseImage(item),
|
||||
start: parseStart(item),
|
||||
stop: parseStop(item)
|
||||
})
|
||||
|
@ -60,7 +60,7 @@ function parseDescription(item) {
|
|||
return typeof item.desc === 'string' ? item.desc : null
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
return item.icon['@attributes'].src
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,8 @@ it('can parse response', () => {
|
|||
category: 'Останато',
|
||||
description:
|
||||
'Екстремниот рибар, Џереми Вејд, е во потрага по слатководни риби кои јадат човечко месо. Со форензички методи, Џереми им илустрира на гледачите како овие нови чудовишта се создадени да убиваат.',
|
||||
icon: 'https://prd-static-mkt.spectar.tv/rev-1636968170/image_transform.php/transform/1/epg_program_id/21949063/instance_id/1'
|
||||
image:
|
||||
'https://prd-static-mkt.spectar.tv/rev-1636968170/image_transform.php/transform/1/epg_program_id/21949063/instance_id/1'
|
||||
}
|
||||
])
|
||||
})
|
||||
|
@ -55,7 +56,8 @@ it('can parse response with no description', () => {
|
|||
title: 'Палмето - игран филм',
|
||||
category: 'Останато',
|
||||
description: null,
|
||||
icon: 'https://prd-static-mkt.spectar.tv/rev-1636968170/image_transform.php/transform/1/epg_program_id/21949063/instance_id/1'
|
||||
image:
|
||||
'https://prd-static-mkt.spectar.tv/rev-1636968170/image_transform.php/transform/1/epg_program_id/21949063/instance_id/1'
|
||||
}
|
||||
])
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue