Update utils.js
This commit is contained in:
parent
4ae18b24dd
commit
c99019c2bb
|
@ -220,13 +220,15 @@ utils.convertToXMLTV = function ({ channels, programs }) {
|
|||
output += '</tv>'
|
||||
|
||||
function createXMLTVNS(s, e) {
|
||||
if (!s || !e) return null
|
||||
if (!s && !e) return null
|
||||
s = s || 1
|
||||
|
||||
return `${s - 1}.${e - 1}.0/1`
|
||||
}
|
||||
|
||||
function createOnScreen(s, e) {
|
||||
if (!s || !e) return null
|
||||
if (!s && !e) return null
|
||||
s = s || 1
|
||||
|
||||
s = padStart(s, 2, '0')
|
||||
e = padStart(e, 2, '0')
|
||||
|
|
Loading…
Reference in New Issue