Update format.js

This commit is contained in:
Aleksandr Statciuk 2021-09-09 01:39:01 +03:00
parent 85eb26abf0
commit fbc23d1675
1 changed files with 0 additions and 1 deletions

View File

@ -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)