[core] Fix `noprogress` if `test=True` with `--quiet` and `--verbose` (#10454)

Authored by: Grub4K
pull/10486/head
Simon Sawicki 4 months ago committed by GitHub
parent 39e6c4cb44
commit 66ce3d76d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3168,11 +3168,12 @@ class YoutubeDL:
if test: if test:
verbose = self.params.get('verbose') verbose = self.params.get('verbose')
quiet = self.params.get('quiet') or not verbose
params = { params = {
'test': True, 'test': True,
'quiet': self.params.get('quiet') or not verbose, 'quiet': quiet,
'verbose': verbose, 'verbose': verbose,
'noprogress': not verbose, 'noprogress': quiet,
'nopart': True, 'nopart': True,
'skip_unavailable_fragments': False, 'skip_unavailable_fragments': False,
'keep_fragments': False, 'keep_fragments': False,

Loading…
Cancel
Save