Fix logic error in report_unplayable_conflict

pull/1822/head
shirt 2021-11-27 12:13:08 -05:00 zatwierdzone przez GitHub
rodzic b28cdcc0e4
commit 93e597ba28
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)