mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update raiplay.it.config.js
Add support for url
This commit is contained in:
parent
a2e140358b
commit
96d84e68e2
1 changed files with 13 additions and 0 deletions
|
@ -32,6 +32,8 @@ module.exports = {
|
|||
description: item.description,
|
||||
season: item.season || null,
|
||||
episode: item.episode || null,
|
||||
sub_title : item['episode_title'] || null,
|
||||
url : parseURL(item),
|
||||
start,
|
||||
stop,
|
||||
icon: parseIcon(item)
|
||||
|
@ -47,3 +49,14 @@ function parseIcon(item) {
|
|||
return cover = item.image ? `https://www.raiplay.it${item.image}` : null
|
||||
|
||||
}
|
||||
|
||||
function parseURL(item) {
|
||||
let url = null
|
||||
if(item.weblink){
|
||||
url = `https://www.raiplay.it${item.weblink}`
|
||||
}
|
||||
if(item.event_weblink){
|
||||
url = `https://www.raiplay.it${item.event_weblink}`
|
||||
}
|
||||
return url
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue