mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-14 11:00:03 -04:00
Detect the resolution on each run
This commit is contained in:
parent
22fb52fd48
commit
735bc5c396
1 changed files with 0 additions and 2 deletions
|
@ -11,7 +11,6 @@ program
|
||||||
.option('-d, --debug', 'Debug mode')
|
.option('-d, --debug', 'Debug mode')
|
||||||
.option('-c, --country <country>', 'Comma-separated list of country codes', '')
|
.option('-c, --country <country>', 'Comma-separated list of country codes', '')
|
||||||
.option('-e, --exclude <exclude>', 'Comma-separated list of country codes to be excluded', '')
|
.option('-e, --exclude <exclude>', 'Comma-separated list of country codes to be excluded', '')
|
||||||
.option('--resolution', 'Turn on resolution parser')
|
|
||||||
.option('--delay <delay>', 'Delay between parser requests', 0)
|
.option('--delay <delay>', 'Delay between parser requests', 0)
|
||||||
.option('--timeout <timeout>', 'Set timeout for each request', 5000)
|
.option('--timeout <timeout>', 'Set timeout for each request', 5000)
|
||||||
.parse(process.argv)
|
.parse(process.argv)
|
||||||
|
@ -113,7 +112,6 @@ async function removeDuplicates(playlist) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function detectResolution(playlist) {
|
async function detectResolution(playlist) {
|
||||||
if (!config.resolution) return playlist
|
|
||||||
const bar = new ProgressBar(' Detecting resolution: [:bar] :current/:total (:percent) ', {
|
const bar = new ProgressBar(' Detecting resolution: [:bar] :current/:total (:percent) ', {
|
||||||
total: playlist.channels.length
|
total: playlist.channels.length
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue