mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update update-api.js
This commit is contained in:
parent
d9731c22b5
commit
62d9f68a7a
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ async function main() {
|
|||
let guides = []
|
||||
for (const filepath of files) {
|
||||
const { site, channels } = await parser.parseChannels(filepath)
|
||||
const config = require(`../../sites/${site}/${site}.config.js`)
|
||||
const dir = file.dirname(filepath)
|
||||
const config = require(file.resolve(`${dir}/${site}.config.js`))
|
||||
if (config.ignore) continue
|
||||
|
||||
const filename = file.basename(filepath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue