Update scripts

This commit is contained in:
freearhey
2026-04-12 08:46:28 +03:00
parent e18bdc87ab
commit 59133e92e8
10 changed files with 199 additions and 107 deletions

View File

@@ -82,7 +82,7 @@ async function main() {
logger.info('adding the missing quality...')
const progressBar = new cliProgress.SingleBar({
clearOnComplete: true,
format: `[{bar}] {percentage}% | {value}/{total}`
format: '[{bar}] {percentage}% | {value}/{total}'
})
progressBar.start(streams.count(), 0)
await eachLimit(streams.all(), options.parallel, async (stream: Stream) => {

View File

@@ -1,20 +1,19 @@
import { IssueLoader, PlaylistParser } from '../../core'
import { isURI, getStreamInfo, loadIssues } from '../../utils'
import { Playlist, Issue, Stream } from '../../models'
import { loadData, data as apiData } from '../../api'
import { Logger, Collection } from '@freearhey/core'
import { isURI, getStreamInfo } from '../../utils'
import { Storage } from '@freearhey/storage-js'
import { STREAMS_DIR } from '../../constants'
import { PlaylistParser } from '../../core'
import * as sdk from '@iptv-org/sdk'
const processedIssues = new Collection()
async function main() {
const logger = new Logger({ level: -999 })
const issueLoader = new IssueLoader()
logger.info('loading issues...')
const issues = await issueLoader.load()
const issues = await loadIssues()
logger.info('loading data from api...')
await loadData()