mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update tvtv.us.config.js
This commit is contained in:
parent
0fd8dfcda5
commit
86a042b0c3
1 changed files with 10 additions and 0 deletions
|
@ -24,6 +24,8 @@ module.exports = {
|
|||
title: parseTitle(item),
|
||||
description: parseDescription(item),
|
||||
category: parseCategory(item),
|
||||
season: parseSeason(item),
|
||||
episode: parseEpisode(item),
|
||||
start: parseStart(item),
|
||||
stop: parseStop(item),
|
||||
icon: parseIcon(item)
|
||||
|
@ -76,6 +78,14 @@ function parseCategory(item) {
|
|||
return item.program.genres || []
|
||||
}
|
||||
|
||||
function parseSeason(item) {
|
||||
return item.program.seasonNum || null
|
||||
}
|
||||
|
||||
function parseEpisode(item) {
|
||||
return item.program.episodeNum || null
|
||||
}
|
||||
|
||||
function parseIcon(item) {
|
||||
return item.program.preferredImage && item.program.preferredImage.uri
|
||||
? `http://tvtv.tmsimg.com/${item.program.preferredImage.uri}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue