|
|
@ -14,8 +14,6 @@ function main() {
|
|
|
|
parseIndex()
|
|
|
|
parseIndex()
|
|
|
|
console.log('Creating root directory...')
|
|
|
|
console.log('Creating root directory...')
|
|
|
|
createRootDirectory()
|
|
|
|
createRootDirectory()
|
|
|
|
console.log('Creating .nojekill...')
|
|
|
|
|
|
|
|
createNoJekillFile()
|
|
|
|
|
|
|
|
console.log('Generating index.m3u...')
|
|
|
|
console.log('Generating index.m3u...')
|
|
|
|
generateIndex()
|
|
|
|
generateIndex()
|
|
|
|
console.log('Generating index.country.m3u...')
|
|
|
|
console.log('Generating index.country.m3u...')
|
|
|
@ -41,10 +39,6 @@ function createRootDirectory() {
|
|
|
|
helper.createDir(ROOT_DIR)
|
|
|
|
helper.createDir(ROOT_DIR)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function createNoJekillFile() {
|
|
|
|
|
|
|
|
helper.createFile(`${ROOT_DIR}/.nojekyll`)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function parseIndex() {
|
|
|
|
function parseIndex() {
|
|
|
|
const root = helper.parsePlaylist('index.m3u')
|
|
|
|
const root = helper.parsePlaylist('index.m3u')
|
|
|
|
|
|
|
|
|
|
|
|