[YoutubeDL] Fix typo in string negation implementation and add more tests (closes #18961)

This commit is contained in:
Sergey M․ 2019-01-24 01:34:41 +07:00
parent 435e382423
commit e118a8794f
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
2 changed files with 28 additions and 4 deletions

View file

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