Update generate.js
This commit is contained in:
parent
f0c88d293c
commit
e50b1251fc
@ -160,6 +160,13 @@ function generateCountries() {
|
|||||||
utils.appendToFile(filename, channel.toString())
|
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() {
|
function generateLanguages() {
|
||||||
@ -176,6 +183,13 @@ function generateLanguages() {
|
|||||||
utils.appendToFile(filename, channel.toString())
|
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() {
|
function finish() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user