mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 19:36:58 -05:00
Update update.js
This commit is contained in:
@@ -10,9 +10,11 @@ const options = program
|
|||||||
.opts()
|
.opts()
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
const items = []
|
||||||
|
|
||||||
|
try {
|
||||||
await api.countries.load()
|
await api.countries.load()
|
||||||
const files = await file.list(CHANNELS_PATH)
|
const files = await file.list(CHANNELS_PATH)
|
||||||
const items = []
|
|
||||||
for (const filepath of files) {
|
for (const filepath of files) {
|
||||||
const { site, channels } = await parser.parseChannels(filepath)
|
const { site, channels } = await parser.parseChannels(filepath)
|
||||||
const dir = file.dirname(filepath)
|
const dir = file.dirname(filepath)
|
||||||
@@ -30,6 +32,9 @@ async function main() {
|
|||||||
group: `${suffix}/${site}`
|
group: `${suffix}/${site}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err)
|
||||||
|
}
|
||||||
|
|
||||||
await generateCountriesTable(items)
|
await generateCountriesTable(items)
|
||||||
await updateReadme()
|
await updateReadme()
|
||||||
|
|||||||
Reference in New Issue
Block a user