mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Update chaines-tv.orange.fr.config.js
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user