Replaces icon with image

This commit is contained in:
freearhey 2024-06-24 16:49:35 +03:00
parent 0eaff54a31
commit bb6771f539
170 changed files with 428 additions and 351 deletions

View file

@ -18,7 +18,7 @@ module.exports = {
description: item.d,
start: dayjs.unix(item.s),
stop: dayjs.unix(item.s + item.m[1]),
icon: item.img ? `http://epgstatic.sky.com/epgdata/1.0/paimage/46/1/${item.img}` : null
image: item.img ? `http://epgstatic.sky.com/epgdata/1.0/paimage/46/1/${item.img}` : null
})
})

View file

@ -31,13 +31,15 @@ it('can parse response', () => {
start: '2021-12-14T01:50:00.000Z',
stop: '2021-12-14T02:20:00.000Z',
title: 'Question of Sport',
icon: 'http://epgstatic.sky.com/epgdata/1.0/paimage/46/1/lisa/5.2.2/linear/channel/7f80ef03-3d8a-4f73-bf7d-6b03f410c7a8/2002'
image:
'http://epgstatic.sky.com/epgdata/1.0/paimage/46/1/lisa/5.2.2/linear/channel/7f80ef03-3d8a-4f73-bf7d-6b03f410c7a8/2002'
},
{
start: '2021-12-14T02:20:00.000Z',
stop: '2021-12-14T02:25:00.000Z',
title: 'Weather for the Week Ahead',
icon: 'http://epgstatic.sky.com/epgdata/1.0/paimage/46/1/lisa/5.2.2/linear/channel/8fcf08b7-4081-499a-bf63-d100908e2d75/2002'
image:
'http://epgstatic.sky.com/epgdata/1.0/paimage/46/1/lisa/5.2.2/linear/channel/8fcf08b7-4081-499a-bf63-d100908e2d75/2002'
}
])
})