Update format.js
This commit is contained in:
parent
85eb26abf0
commit
fbc23d1675
|
@ -30,7 +30,6 @@ async function main() {
|
||||||
const include = config.country.split(',').filter(i => i)
|
const include = config.country.split(',').filter(i => i)
|
||||||
const exclude = config.exclude.split(',').filter(i => i)
|
const exclude = config.exclude.split(',').filter(i => i)
|
||||||
let files = await file.list(include, exclude)
|
let files = await file.list(include, exclude)
|
||||||
files = files.filter(file => file !== 'channels/unsorted.m3u')
|
|
||||||
if (!files.length) log.print(`No files is selected\n`)
|
if (!files.length) log.print(`No files is selected\n`)
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
await parser.parsePlaylist(file).then(updatePlaylist).then(savePlaylist)
|
await parser.parsePlaylist(file).then(updatePlaylist).then(savePlaylist)
|
||||||
|
|
Loading…
Reference in New Issue