[YoutubeDL] Fix typo in string negation implementation and add more tests (closes #18961)
This commit is contained in:
@@ -1078,7 +1078,7 @@ class YoutubeDL(object):
|
||||
comparison_value = m.group('value')
|
||||
str_op = STR_OPERATORS[m.group('op')]
|
||||
if m.group('negation'):
|
||||
op = lambda attr, value: not str_op
|
||||
op = lambda attr, value: not str_op(attr, value)
|
||||
else:
|
||||
op = str_op
|
||||
|
||||
|
Reference in New Issue
Block a user