Detect the resolution on each run
This commit is contained in:
parent
22fb52fd48
commit
735bc5c396
@ -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…
Reference in New Issue
Block a user