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
|
@ -38,7 +38,7 @@ module.exports = {
|
|||
title: item.j,
|
||||
category: item.h,
|
||||
description: item.c,
|
||||
icon: parseIcon(item),
|
||||
image: parseImage(item),
|
||||
start,
|
||||
stop
|
||||
})
|
||||
|
@ -66,7 +66,7 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
function parseImage(item) {
|
||||
return item.z ? `http://www.tvmusor.hu/images/events/408/${item.z}` : null
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,8 @@ it('can parse response', () => {
|
|||
title: 'Rövidpályás Úszó Országos Bajnokság',
|
||||
category: 'sportműsor',
|
||||
description: 'Forma-1 magazin. Hírek, információk, érdekességek a Forma-1 világából.',
|
||||
icon: 'http://www.tvmusor.hu/images/events/408/f1e45193930943d9ee29769e0afa902aff0e4a90-better-call-saul.jpg'
|
||||
image:
|
||||
'http://www.tvmusor.hu/images/events/408/f1e45193930943d9ee29769e0afa902aff0e4a90-better-call-saul.jpg'
|
||||
})
|
||||
|
||||
expect(results[1]).toMatchObject({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue