mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update guidatv.sky.it.config.js
Add support for url
This commit is contained in:
committed by
GitHub
parent
dad910a3b2
commit
1a246455b4
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user