about summary refs log tree commit diff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-01-24 01:34:41 +0700
committerSergey M․ <dstftw@gmail.com>2019-01-24 01:39:39 +0700
commite118a8794ffe5a3a414afd489726f34d753b0b23 (patch)
treea0e997394f2225e6d10ef6135c880f1d825bc195 /youtube_dl/YoutubeDL.py
parent435e382423f860aca82a58d7c3db58cbfa242b40 (diff)
downloadyoutube-dl-e118a8794ffe5a3a414afd489726f34d753b0b23.tar.gz
youtube-dl-e118a8794ffe5a3a414afd489726f34d753b0b23.tar.xz
youtube-dl-e118a8794ffe5a3a414afd489726f34d753b0b23.zip
[YoutubeDL] Fix typo in string negation implementation and add more tests (closes #18961)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index a827414dc..80ed8d7e5 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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