diff options
author | shirt <2660574+shirt-dev@users.noreply.github.com> | 2021-11-27 12:13:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-27 12:13:08 -0500 |
commit | 93e597ba287539643851f0ad5c5ff04760380268 (patch) | |
tree | 3de67f2637804934dc5e91d5016828897170ae26 | |
parent | b28cdcc0e4a63299d53a656782edfec3485f4cfd (diff) | |
download | hypervideo-pre-93e597ba287539643851f0ad5c5ff04760380268.tar.lz hypervideo-pre-93e597ba287539643851f0ad5c5ff04760380268.tar.xz hypervideo-pre-93e597ba287539643851f0ad5c5ff04760380268.zip |
Fix logic error in report_unplayable_conflict
-rw-r--r-- | yt_dlp/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index 7960d3b03..38959d930 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -400,7 +400,7 @@ def _real_main(argv=None): if opts.allow_unplayable_formats: def report_unplayable_conflict(opt_name, arg, default=False, allowed=None): 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) setattr(opts, opt_name, default) |