mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Update file.js
This commit is contained in:
parent
1572f1c799
commit
41e21e2d64
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ const file = {}
|
|||
|
||||
file.list = function (include = [], exclude = []) {
|
||||
return new Promise(resolve => {
|
||||
glob('channels/*.m3u', function (err, files) {
|
||||
glob('channels/**/*.m3u', function (err, files) {
|
||||
if (include.length) {
|
||||
include = include.map(filename => `channels/${filename}.m3u`)
|
||||
files = files.filter(filename => include.includes(filename))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue