mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update create.js
This commit is contained in:
parent
0b25f25390
commit
e0e9029177
1 changed files with 0 additions and 7 deletions
|
@ -44,8 +44,6 @@ async function createQueue() {
|
|||
const config = require(file.resolve(configPath))
|
||||
if (config.skip) continue
|
||||
const filename = file.basename(filepath)
|
||||
const [__, region] = filename.match(/_([a-z-]+)\.channels\.xml/i) || [null, null]
|
||||
const groupId = `${region}/${site}`
|
||||
for (const channel of channels) {
|
||||
if (!channel.site || !channel.id) continue
|
||||
const found = api.channels.find({ id: channel.id })
|
||||
|
@ -59,14 +57,9 @@ async function createQueue() {
|
|||
channel,
|
||||
date: dString,
|
||||
configPath,
|
||||
groups: [],
|
||||
error: null
|
||||
}
|
||||
}
|
||||
|
||||
if (!queue[key].groups.includes(groupId)) {
|
||||
queue[key].groups.push(groupId)
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue