[YoutubeDL] Fix typo in string negation implementation and add more tests (closes #18961)
This commit is contained in:
parent
435e382423
commit
e118a8794f
2 changed files with 28 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue