Update utils.js

This commit is contained in:
Aleksandr Statciuk 2022-04-20 16:16:05 +03:00
parent 134b4a5e20
commit 37120fb9f7
1 changed files with 2 additions and 2 deletions

View File

@ -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')