Update file.js

pull/4425/head
Aleksandr Statciuk 3 years ago
parent 1b2fbcce3a
commit da29bd114e

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

Loading…
Cancel
Save