From dec8e25abbdb194226525633f607ac010449e55e Mon Sep 17 00:00:00 2001 From: freearhey Date: Mon, 10 May 2021 14:39:01 +0300 Subject: [PATCH] Update generate.js Fixes #2750 --- scripts/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.js b/scripts/generate.js index eb3a99594..ca205bc2e 100644 --- a/scripts/generate.js +++ b/scripts/generate.js @@ -188,7 +188,6 @@ function generateCountries() { const outputDir = `${ROOT_DIR}/countries` utils.createDir(outputDir) - const buffer = [] for (const country of [...db.countries.all(), { code: 'undefined' }]) { const filename = `${outputDir}/${country.code}.m3u` utils.createFile(filename, '#EXTM3U\n') @@ -196,6 +195,7 @@ function generateCountries() { const sfwFilename = `${outputDir}/${country.code}.sfw.m3u` utils.createFile(sfwFilename, '#EXTM3U\n') + const buffer = [] const channels = db.channels.sortBy(['name', 'url']).forCountry(country).get() for (const channel of channels) { const info = channel.getInfo()