mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 11:27:06 -05:00
Update tvtv.us.config.js
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user