From 7f4bd7f07b0708a7026438e8be9d9d92e8179d5a Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Sun, 20 Sep 2020 21:06:50 +0200 Subject: [PATCH] set dayStart when is empty --- plugins/helpers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/helpers.js b/plugins/helpers.js index f82fcfb0..aaf30bae 100644 --- a/plugins/helpers.js +++ b/plugins/helpers.js @@ -1,5 +1,8 @@ export default ({ app }, inject) => { inject('processPlaylist', (dayStart, list) => { + if (!dayStart) { + dayStart = '00:00:00' + } const [h, m, s] = dayStart.split(':') let begin = parseFloat(h) * 3600 + parseFloat(m) * 60 + parseFloat(s)