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
3c1ac2e326
commit
43c76cd04d
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
const { db, logger, file, api } = require('../../core')
|
||||
const { db, logger, file, api, zip } = require('../../core')
|
||||
const grabber = require('epg-grabber')
|
||||
const _ = require('lodash')
|
||||
|
||||
|
@ -42,6 +42,8 @@ async function main() {
|
|||
logger.info(`Creating "${filepath}"...`)
|
||||
const output = grabber.convertToXMLTV({ channels, programs })
|
||||
await file.create(filepath, output)
|
||||
const compressed = await zip.compress(output)
|
||||
await file.create(filepath + '.gz', compressed)
|
||||
}
|
||||
|
||||
if (!total) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue