This commit is contained in:
Aleksandr Statciuk 2022-06-11 21:11:42 +03:00
parent 482e8c705e
commit 4d6f4fb435
2 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,7 @@ async function main() {
}
}
const xml = grabber.generateXMLTV({ config, channels, programs })
const xml = grabber.generateXMLTV({ channels, programs })
let outputPath = options.output || config.output
if (options.gzip) {
outputPath = outputPath || 'guide.xml.gz'

View File

@ -11,6 +11,7 @@ function generate({ channels, programs, date = getUTCDate() }) {
let output = `<?xml version="1.0" encoding="UTF-8" ?><tv date="${dayjs(date).format(
'YYYYMMDD'
)}">\r\n`
for (let channel of channels) {
const id = escapeString(channel['xmltv_id'])
const displayName = escapeString(channel.name)