mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 17:10:07 -04:00
Update transvision.co.id.config.js
This commit is contained in:
parent
d97efe669d
commit
85bef8b2a4
1 changed files with 5 additions and 7 deletions
|
@ -31,15 +31,13 @@ module.exports = {
|
||||||
const programs = []
|
const programs = []
|
||||||
const items = parseItems(content)
|
const items = parseItems(content)
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
const title = parseTitle(item)
|
const prev = programs[programs.length - 1]
|
||||||
const start = parseStart(item, date)
|
const start = parseStart(item, date)
|
||||||
const duration = parseDuration(item)
|
if (prev) prev.stop = start
|
||||||
const stop = start.add(duration, 'm')
|
const stop = start.add(30, 'm')
|
||||||
const description = parseDescription(item)
|
|
||||||
|
|
||||||
programs.push({
|
programs.push({
|
||||||
title,
|
title: parseTitle(item),
|
||||||
description,
|
description: parseDescription(item),
|
||||||
start,
|
start,
|
||||||
stop
|
stop
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue