mirror of
https://github.com/iptv-org/epg
synced 2026-04-25 20:17:01 -04:00
Update tvpassport.com.config.js
This commit is contained in:
@@ -31,15 +31,15 @@ module.exports = {
|
|||||||
const duration = parseDuration($item)
|
const duration = parseDuration($item)
|
||||||
const stop = start.add(duration, 'm')
|
const stop = start.add(duration, 'm')
|
||||||
let title = parseTitle($item)
|
let title = parseTitle($item)
|
||||||
let sub_title = parseSubTitle($item)
|
let subtitle = parseSubTitle($item)
|
||||||
if (title === 'Movie') {
|
if (title === 'Movie') {
|
||||||
title = sub_title
|
title = subtitle
|
||||||
sub_title = null
|
subtitle = null
|
||||||
}
|
}
|
||||||
|
|
||||||
programs.push({
|
programs.push({
|
||||||
title,
|
title,
|
||||||
sub_title,
|
subtitle,
|
||||||
description: parseDescription($item),
|
description: parseDescription($item),
|
||||||
image: parseImage($item),
|
image: parseImage($item),
|
||||||
category: parseCategory($item),
|
category: parseCategory($item),
|
||||||
@@ -47,6 +47,7 @@ module.exports = {
|
|||||||
actors: parseActors($item),
|
actors: parseActors($item),
|
||||||
guest: parseGuest($item),
|
guest: parseGuest($item),
|
||||||
director: parseDirector($item),
|
director: parseDirector($item),
|
||||||
|
year: parseYear($item),
|
||||||
start,
|
start,
|
||||||
stop
|
stop
|
||||||
})
|
})
|
||||||
@@ -110,11 +111,15 @@ function parseImage($item) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function parseTitle($item) {
|
function parseTitle($item) {
|
||||||
return $item('*').data('showname')
|
return $item('*').data('showname').toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseSubTitle($item) {
|
function parseSubTitle($item) {
|
||||||
return $item('*').data('episodetitle')
|
return $item('*').data('episodetitle').toString() || null
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseYear($item) {
|
||||||
|
return $item('*').data('year').toString() || null
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseCategory($item) {
|
function parseCategory($item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user