mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Added image to sky.com
This commit is contained in:
parent
2721fe1ba0
commit
f3df393df6
2 changed files with 16 additions and 3 deletions
|
@ -28,13 +28,18 @@ module.exports = {
|
||||||
schedule.events.forEach(event => {
|
schedule.events.forEach(event => {
|
||||||
const start = dayjs.utc(event.st * 1000)
|
const start = dayjs.utc(event.st * 1000)
|
||||||
if (start.isSame(date, 'd')) {
|
if (start.isSame(date, 'd')) {
|
||||||
|
const image = `https://images.metadata.sky.com/pd-image/${event.programmeuuid}/16-9/640`
|
||||||
programs.push({
|
programs.push({
|
||||||
title: event.t,
|
title: event.t,
|
||||||
description: event.sy,
|
description: event.sy,
|
||||||
season: event.seasonnumber,
|
season: event.seasonnumber,
|
||||||
episode: event.episodenumber,
|
episode: event.episodenumber,
|
||||||
start,
|
start,
|
||||||
stop: start.add(event.d, 's')
|
stop: start.add(event.d, 's'),
|
||||||
|
icon: {
|
||||||
|
src: image
|
||||||
|
},
|
||||||
|
image,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -34,7 +34,11 @@ it('can parse response', () => {
|
||||||
description:
|
description:
|
||||||
'A Sale Of Two Cities: Emily brings her mother along with her to Walnut, and Darrell wastes no time finding an advantage. Ivy and Ivy jr clean up with their locker. (S12, ep 4)',
|
'A Sale Of Two Cities: Emily brings her mother along with her to Walnut, and Darrell wastes no time finding an advantage. Ivy and Ivy jr clean up with their locker. (S12, ep 4)',
|
||||||
season: 12,
|
season: 12,
|
||||||
episode: 4
|
episode: 4,
|
||||||
|
icon: {
|
||||||
|
src: 'https://images.metadata.sky.com/pd-image/42dd62d5-7d64-38b7-aafc-1c624c005f16/16-9/640'
|
||||||
|
},
|
||||||
|
image: 'https://images.metadata.sky.com/pd-image/42dd62d5-7d64-38b7-aafc-1c624c005f16/16-9/640'
|
||||||
})
|
})
|
||||||
expect(result[2]).toMatchObject({
|
expect(result[2]).toMatchObject({
|
||||||
start: '2024-12-14T01:00:00.000Z',
|
start: '2024-12-14T01:00:00.000Z',
|
||||||
|
@ -43,7 +47,11 @@ it('can parse response', () => {
|
||||||
description:
|
description:
|
||||||
'Not All That Glitters Is Gourd: Back in the city of Orange, the Vegas Ladies arrive in vintage style - though not everyone agrees. (S12, ep 6)',
|
'Not All That Glitters Is Gourd: Back in the city of Orange, the Vegas Ladies arrive in vintage style - though not everyone agrees. (S12, ep 6)',
|
||||||
season: 12,
|
season: 12,
|
||||||
episode: 6
|
episode: 6,
|
||||||
|
icon: {
|
||||||
|
src: 'https://images.metadata.sky.com/pd-image/b9572a38-8db7-471e-a2d7-462e1dd26af2/16-9/640'
|
||||||
|
},
|
||||||
|
image: 'https://images.metadata.sky.com/pd-image/b9572a38-8db7-471e-a2d7-462e1dd26af2/16-9/640'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue