mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-03 07:56:41 -05:00
Fix logic error in report_unplayable_conflict
This commit is contained in:
parent
b28cdcc0e4
commit
93e597ba28
@ -400,7 +400,7 @@ def _real_main(argv=None):
|
|||||||
if opts.allow_unplayable_formats:
|
if opts.allow_unplayable_formats:
|
||||||
def report_unplayable_conflict(opt_name, arg, default=False, allowed=None):
|
def report_unplayable_conflict(opt_name, arg, default=False, allowed=None):
|
||||||
val = getattr(opts, opt_name)
|
val = getattr(opts, opt_name)
|
||||||
if (not allowed and val) or not allowed(val):
|
if (not allowed and val) or (allowed and not allowed(val)):
|
||||||
report_conflict('--allow-unplayable-formats', arg)
|
report_conflict('--allow-unplayable-formats', arg)
|
||||||
setattr(opts, opt_name, default)
|
setattr(opts, opt_name, default)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user