mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Create commands/load-cluster.js
This commit is contained in:
parent
f5dbc9376e
commit
a1f0bc2d2a
10 changed files with 29683 additions and 29503 deletions
|
@ -32,9 +32,11 @@ async function loadChannels() {
|
|||
|
||||
const files = await file.list(options.channels)
|
||||
for (const filepath of files) {
|
||||
const dir = file.dirname(filepath)
|
||||
const items = await parser.parseChannels(filepath)
|
||||
for (const item of items) {
|
||||
item.filepath = filepath
|
||||
item.channelsPath = filepath
|
||||
item.configPath = `${dir}/${item.site}.config.js`
|
||||
channels.push(item)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue