mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update chaines-tv.orange.fr.config.js
This commit is contained in:
parent
7096beec7d
commit
5431648dbf
1 changed files with 10 additions and 2 deletions
|
@ -20,8 +20,8 @@ module.exports = {
|
|||
subTitle: item.season?.serie?.title,
|
||||
category: item.genreDetailed,
|
||||
description: item.synopsis,
|
||||
season: item.season?.number,
|
||||
episode: item.season?.episodeNumber,
|
||||
season: parseSeason(item),
|
||||
episode: parseEpisode(item),
|
||||
image: parseImage(item),
|
||||
start: start.toJSON(),
|
||||
stop: stop.toJSON()
|
||||
|
@ -64,6 +64,14 @@ function parseStop(item, start) {
|
|||
return start.add(item.duration, 's')
|
||||
}
|
||||
|
||||
function parseSeason(item) {
|
||||
return item.season?.number
|
||||
}
|
||||
|
||||
function parseEpisode(item) {
|
||||
return item.episodeNumber
|
||||
}
|
||||
|
||||
function parseItems(content, channel) {
|
||||
const data = JSON.parse(content)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue