mirror of
https://github.com/iptv-org/epg
synced 2025-12-19 03:46:41 -05:00
Update tvtv.us.config.js
This commit is contained in:
@@ -24,6 +24,8 @@ module.exports = {
|
|||||||
title: parseTitle(item),
|
title: parseTitle(item),
|
||||||
description: parseDescription(item),
|
description: parseDescription(item),
|
||||||
category: parseCategory(item),
|
category: parseCategory(item),
|
||||||
|
season: parseSeason(item),
|
||||||
|
episode: parseEpisode(item),
|
||||||
start: parseStart(item),
|
start: parseStart(item),
|
||||||
stop: parseStop(item),
|
stop: parseStop(item),
|
||||||
icon: parseIcon(item)
|
icon: parseIcon(item)
|
||||||
@@ -76,6 +78,14 @@ function parseCategory(item) {
|
|||||||
return item.program.genres || []
|
return item.program.genres || []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function parseSeason(item) {
|
||||||
|
return item.program.seasonNum || null
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseEpisode(item) {
|
||||||
|
return item.program.episodeNum || null
|
||||||
|
}
|
||||||
|
|
||||||
function parseIcon(item) {
|
function parseIcon(item) {
|
||||||
return item.program.preferredImage && item.program.preferredImage.uri
|
return item.program.preferredImage && item.program.preferredImage.uri
|
||||||
? `http://tvtv.tmsimg.com/${item.program.preferredImage.uri}`
|
? `http://tvtv.tmsimg.com/${item.program.preferredImage.uri}`
|
||||||
|
|||||||
Reference in New Issue
Block a user