mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Minor fixes
This commit is contained in:
parent
543d029baf
commit
fa8549c3e9
3 changed files with 6 additions and 29515 deletions
3
scripts/.gitignore
vendored
3
scripts/.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
edit.js
|
edit.js
|
||||||
|
channels.db
|
29512
scripts/channels.db
29512
scripts/channels.db
File diff suppressed because it is too large
Load diff
|
@ -18,14 +18,16 @@ async function main() {
|
||||||
logger.info(`Creating '${clusterLog}'...`)
|
logger.info(`Creating '${clusterLog}'...`)
|
||||||
await file.create(clusterLog)
|
await file.create(clusterLog)
|
||||||
const items = await db.find({ cluster_id: options.clusterId })
|
const items = await db.find({ cluster_id: options.clusterId })
|
||||||
const total = items.length
|
let days = 2
|
||||||
logger.info(`Found ${total} links`)
|
const total = days * items.length
|
||||||
|
logger.info(`Total ${total} requests`)
|
||||||
|
|
||||||
logger.info('Loading...')
|
logger.info('Loading...')
|
||||||
const results = {}
|
const results = {}
|
||||||
let i = 1
|
let i = 1
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
const config = require(file.resolve(item.configPath))
|
const config = require(file.resolve(item.configPath))
|
||||||
|
config.days = config.days || days
|
||||||
const programs = await grabber.grab(item, config, (data, err) => {
|
const programs = await grabber.grab(item, config, (data, err) => {
|
||||||
logger.info(
|
logger.info(
|
||||||
`[${i}/${total}] ${config.site} - ${data.channel.xmltv_id} - ${data.date.format(
|
`[${i}/${total}] ${config.site} - ${data.channel.xmltv_id} - ${data.date.format(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue