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
8649ff8b7c
commit
abc947cf6d
1 changed files with 3 additions and 2 deletions
|
@ -32,8 +32,8 @@ async function createQueue() {
|
||||||
|
|
||||||
let queue = {}
|
let queue = {}
|
||||||
|
|
||||||
await api.channels.load()
|
await api.channels.load().catch(console.error)
|
||||||
const files = await file.list(CHANNELS_PATH)
|
const files = await file.list(CHANNELS_PATH).catch(console.error)
|
||||||
const utcDate = date.getUTC()
|
const utcDate = date.getUTC()
|
||||||
const dates = Array.from({ length: options.days }, (_, i) => utcDate.add(i, 'd'))
|
const dates = Array.from({ length: options.days }, (_, i) => utcDate.add(i, 'd'))
|
||||||
for (const filepath of files) {
|
for (const filepath of files) {
|
||||||
|
@ -77,6 +77,7 @@ async function createQueue() {
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue