Update file.js

This commit is contained in:
Aleksandr Statciuk 2021-09-08 20:47:56 +03:00
parent 1b2fbcce3a
commit da29bd114e
1 changed files with 0 additions and 1 deletions

View File

@ -9,7 +9,6 @@ const file = {}
file.list = function (include = [], exclude = []) { file.list = function (include = [], exclude = []) {
return new Promise(resolve => { return new Promise(resolve => {
glob('channels/*.m3u', function (err, files) { glob('channels/*.m3u', function (err, files) {
console.log(include, exclude)
if (include.length) { if (include.length) {
include = include.map(filename => `channels/${filename}.m3u`) include = include.map(filename => `channels/${filename}.m3u`)
files = files.filter(filename => include.includes(filename)) files = files.filter(filename => include.includes(filename))