Detect the resolution on each run

This commit is contained in:
freearhey 2021-05-06 00:43:53 +03:00
parent 22fb52fd48
commit 735bc5c396

View File

@ -11,7 +11,6 @@ program
.option('-d, --debug', 'Debug mode')
.option('-c, --country <country>', 'Comma-separated list of country codes', '')
.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('--timeout <timeout>', 'Set timeout for each request', 5000)
.parse(process.argv)
@ -113,7 +112,6 @@ async function removeDuplicates(playlist) {
}
async function detectResolution(playlist) {
if (!config.resolution) return playlist
const bar = new ProgressBar(' Detecting resolution: [:bar] :current/:total (:percent) ', {
total: playlist.channels.length
})