Update generate.js
This commit is contained in:
parent
c67426689b
commit
fee6b416f3
@ -12,8 +12,8 @@ let list = {
|
|||||||
function main() {
|
function main() {
|
||||||
console.log(`Parsing index...`)
|
console.log(`Parsing index...`)
|
||||||
parseIndex()
|
parseIndex()
|
||||||
console.log('Creating public directory...')
|
console.log('Creating root directory...')
|
||||||
createPublicDirectory()
|
createRootDirectory()
|
||||||
console.log('Generating index.m3u...')
|
console.log('Generating index.m3u...')
|
||||||
generateIndex()
|
generateIndex()
|
||||||
console.log('Generating index.country.m3u...')
|
console.log('Generating index.country.m3u...')
|
||||||
@ -35,7 +35,7 @@ function main() {
|
|||||||
console.log(`Countries: ${Object.values(list.countries).length}. Languages: ${Object.values(list.languages).length}. Categories: ${Object.values(list.categories).length}. Channels: ${list.all.length}.`)
|
console.log(`Countries: ${Object.values(list.countries).length}. Languages: ${Object.values(list.languages).length}. Categories: ${Object.values(list.categories).length}. Channels: ${list.all.length}.`)
|
||||||
}
|
}
|
||||||
|
|
||||||
function createPublicDirectory() {
|
function createRootDirectory() {
|
||||||
helper.createDir(ROOT_DIR)
|
helper.createDir(ROOT_DIR)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user