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
52f254634f
commit
27f2476b6a
1 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,7 @@ module.exports = {
|
||||||
title: parseTitle(item),
|
title: parseTitle(item),
|
||||||
sub_title: parseSubtitle(item),
|
sub_title: parseSubtitle(item),
|
||||||
description: parseDescription(item),
|
description: parseDescription(item),
|
||||||
|
ratings: parseRating(item),
|
||||||
category: parseCategory(item),
|
category: parseCategory(item),
|
||||||
season: parseSeason(item),
|
season: parseSeason(item),
|
||||||
episode: parseEpisode(item),
|
episode: parseEpisode(item),
|
||||||
|
@ -122,6 +123,14 @@ function parseEpisode(item) {
|
||||||
return item.program.episodeNum || null
|
return item.program.episodeNum || null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function parseRating(item) {
|
||||||
|
return {
|
||||||
|
system: item.program.ratings.body,
|
||||||
|
value: item.program.ratings.code
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function parseIcon(item) {
|
function parseIcon(item) {
|
||||||
return item.program.preferredImage && item.program.preferredImage.uri
|
return item.program.preferredImage && item.program.preferredImage.uri
|
||||||
? `https://tvtv.us/gn/i/${item.program.preferredImage.uri}`
|
? `https://tvtv.us/gn/i/${item.program.preferredImage.uri}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue