What to name elements of programs array in site config files #1637
Unanswered
Greatnloopy
asked this question in
Q&A
Replies: 1 comment
-
Looks like you are on the right path. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm interested in trying to add some program information from tvpassport.com to the xmltv file but I don't know what to call the array elements so that they are formatted correctly when handled by the programs parser.
This is the current programs array for tvpassport.com looks like:
programs.push({
title,
sub_title,
description: parseDescription($item),
icon: parseIcon($item),
category: parseCategory($item),
rating: parseRating($item),
actors: parseActors($item),
guest: parseGuest($item),
director: parseDirector($item),
start,
stop
})
But I would like to add elements for new episode, live episode and episode number (possible others). Would something like this work?
newep: parseNewEp($item),
liveep: parseLiveEp($item),
epnum: parseEpNum($item)
Of course, the called functions would be written as well. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions