Update index.js

This commit is contained in:
freearhey 2021-03-19 22:19:48 +03:00
parent a3e4479dfc
commit 4de8e8a6ad
1 changed files with 2 additions and 1 deletions

View File

@ -20,12 +20,13 @@ async function main() {
const config = utils.loadConfig(options.config)
if (options.debug) console.log(config)
const client = utils.createHttpClient(config)
const channels = utils.parseChannels(config, config.channels)
const channels = utils.parseChannels(config.channels)
const utcDate = utils.getUTCDate()
const dates = Array.from({ length: config.days }, (_, i) => utcDate.add(i, 'd'))
const queue = []
channels.forEach(channel => {
channel.logo = config.logo ? config.logo(channel) : null
dates.forEach(date => {
queue.push({ date, channel })
})