From 43c76cd04d273f705305a66efec87c6870445748 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 15 Mar 2022 15:26:26 +0300 Subject: [PATCH] Update update.js --- scripts/commands/guides/update.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/commands/guides/update.js b/scripts/commands/guides/update.js index f7de932e..4c0727c8 100644 --- a/scripts/commands/guides/update.js +++ b/scripts/commands/guides/update.js @@ -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) {