mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update tvtv.us.config.js
This commit is contained in:
parent
5c20b67a73
commit
31af53d017
1 changed files with 30 additions and 2 deletions
|
@ -23,6 +23,14 @@ module.exports = {
|
||||||
category: parseCategory(item),
|
category: parseCategory(item),
|
||||||
season: parseSeason(item),
|
season: parseSeason(item),
|
||||||
episode: parseEpisode(item),
|
episode: parseEpisode(item),
|
||||||
|
rating: [{
|
||||||
|
system: parseRatingSystem(item),
|
||||||
|
value: parseRatingValue(item),
|
||||||
|
icon: ''
|
||||||
|
}],
|
||||||
|
directors: parseDirectors(item),
|
||||||
|
actors: parseActors(item),
|
||||||
|
date: parseDate(item),
|
||||||
start: parseStart(item),
|
start: parseStart(item),
|
||||||
stop: parseStop(item),
|
stop: parseStop(item),
|
||||||
icon: parseIcon(item)
|
icon: parseIcon(item)
|
||||||
|
@ -122,9 +130,29 @@ function parseEpisode(item) {
|
||||||
return item.program.episodeNum || null
|
return item.program.episodeNum || null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function parseDirectors(item) {
|
||||||
|
return item.program.directors || []
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseDate(item) {
|
||||||
|
return item.program.origAirDate
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseRatingSystem(item) {
|
||||||
|
return item.program.ratings.body
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseRatingValue(item) {
|
||||||
|
return item.program.ratings.code
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseActors(item) {
|
||||||
|
return item.program.topCast || []
|
||||||
|
}
|
||||||
|
|
||||||
function parseIcon(item) {
|
function parseIcon(item) {
|
||||||
return item.program.seriesId
|
return item.program.preferredImage && item.program.preferredImage.uri
|
||||||
? `https://tvtv.us/gn/i/assets/p${item.program.seriesId}_b_h9_aa.jpg?w=3840&h=2880`
|
? `https://tvtv.us/gn/i/${item.program.preferredImage.uri}`
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue