mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Create commands/load-cluster.js
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user