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