wip
This commit is contained in:
parent
482e8c705e
commit
4d6f4fb435
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue