mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update update.js
This commit is contained in:
parent
f6676e05c8
commit
e1bc1307ac
1 changed files with 4 additions and 5 deletions
|
@ -31,12 +31,11 @@ async function main() {
|
|||
channels = Object.values(channels)
|
||||
channels = _.sortBy(channels, 'id')
|
||||
|
||||
const filepath = `${PUBLIC_DIR}/guides/${key}.epg.xml`
|
||||
const filepath = `${PUBLIC_DIR}/guides/${key}.xml.gz`
|
||||
logger.info(`Creating "${filepath}"...`)
|
||||
const output = generateXMLTV({ channels, programs, date: CURR_DATE })
|
||||
await file.create(filepath, output)
|
||||
const compressed = await zip.compress(output)
|
||||
await file.create(filepath + '.gz', compressed)
|
||||
const xmltv = generateXMLTV({ channels, programs, date: CURR_DATE })
|
||||
const compressed = await zip.compress(xmltv)
|
||||
await file.create(filepath, compressed)
|
||||
}
|
||||
|
||||
if (!total) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue