mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
wip
This commit is contained in:
parent
3b08799772
commit
c2c0c26a7f
4 changed files with 10269 additions and 589 deletions
|
@ -14,9 +14,9 @@ utils.convertToXMLTV = function ({ channels, programs }) {
|
|||
}
|
||||
|
||||
for (let program of programs) {
|
||||
const start = program.start ? dayjs(program.start).format('YYYYMMDDHHmmss ZZ') : null
|
||||
const stop = program.stop ? dayjs(program.stop).format('YYYYMMDDHHmmss ZZ') : null
|
||||
const title = program.title ? program.title.toString().trim().replace('&', '&') : null
|
||||
const start = program.start ? dayjs(program.start).format('YYYYMMDDHHmmss ZZ') : ''
|
||||
const stop = program.stop ? dayjs(program.stop).format('YYYYMMDDHHmmss ZZ') : ''
|
||||
const title = program.title ? program.title.toString().trim().replace('&', '&') : ''
|
||||
const lang = program.lang ? program.lang : 'en'
|
||||
|
||||
if (start && title) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue