diff --git a/scripts/generate.js b/scripts/generate.js index d74b42a4a1..aecd718252 100644 --- a/scripts/generate.js +++ b/scripts/generate.js @@ -160,6 +160,13 @@ function generateCountries() { utils.appendToFile(filename, channel.toString()) } } + + const other = `${outputDir}/undefined.m3u` + const channels = db.channels.sortBy(['name', 'url']).forCountry({ code: null }) + utils.createFile(other, '#EXTM3U\n') + for (const channel of channels) { + utils.appendToFile(other, channel.toString()) + } } function generateLanguages() { @@ -176,6 +183,13 @@ function generateLanguages() { utils.appendToFile(filename, channel.toString()) } } + + const other = `${outputDir}/undefined.m3u` + const channels = db.channels.sortBy(['name', 'url']).forLanguage({ code: null }) + utils.createFile(other, '#EXTM3U\n') + for (const channel of channels) { + utils.appendToFile(other, channel.toString()) + } } function finish() {