mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update guidatv.sky.it.config.js
Add support for url
This commit is contained in:
parent
dad910a3b2
commit
1a246455b4
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,7 @@ module.exports = {
|
||||||
episode: item.content.episodeNumber || null,
|
episode: item.content.episodeNumber || null,
|
||||||
start: parseStart(item),
|
start: parseStart(item),
|
||||||
stop: parseStop(item),
|
stop: parseStop(item),
|
||||||
|
url: parseURL(item),
|
||||||
icon: parseIcon(item)
|
icon: parseIcon(item)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -47,6 +48,10 @@ function parseStop(item) {
|
||||||
return item.endtime ? dayjs(item.endtime) : null
|
return item.endtime ? dayjs(item.endtime) : null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function parseURL(item) {
|
||||||
|
return item.content.url ? `https://guidatv.sky.it${item.content.url}` : null
|
||||||
|
}
|
||||||
|
|
||||||
function parseIcon(item) {
|
function parseIcon(item) {
|
||||||
const cover = item.content.imagesMap ? item.content.imagesMap.find(i => i.key === 'cover') : null
|
const cover = item.content.imagesMap ? item.content.imagesMap.find(i => i.key === 'cover') : null
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue