Update programme-tv.net.config.js
This commit is contained in:
@@ -61,14 +61,17 @@ module.exports = {
|
|||||||
.set('M', date.get('M'))
|
.set('M', date.get('M'))
|
||||||
.set('y', date.get('y'))
|
.set('y', date.get('y'))
|
||||||
|
|
||||||
const durationInMilliseconds = parseDuration(durationContent)
|
let stop = null
|
||||||
const stop = start.add(dayjs.duration(durationInMilliseconds))
|
if (durationContent) {
|
||||||
|
const durationInMilliseconds = parseDuration(durationContent)
|
||||||
|
stop = start.add(dayjs.duration(durationInMilliseconds)).toString()
|
||||||
|
}
|
||||||
|
|
||||||
programs.push({
|
programs.push({
|
||||||
title,
|
title,
|
||||||
category,
|
category,
|
||||||
start: start.toString(),
|
start: start.toString(),
|
||||||
stop: stop.toString()
|
stop
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user