From f96bff99cb2cf1d112b099e5149dd2c3a6a76af2 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 26 Oct 2020 21:14:00 +0530 Subject: Relaxed validation for format filters so that any arbitrary field can be used --- youtube_dlc/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube_dlc/YoutubeDL.py') diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py index 41a1ec724..ee6d74910 100644 --- a/youtube_dlc/YoutubeDL.py +++ b/youtube_dlc/YoutubeDL.py @@ -1142,7 +1142,7 @@ class YoutubeDL(object): '*=': lambda attr, value: value in attr, } str_operator_rex = re.compile(r'''(?x) - \s*(?Pext|acodec|vcodec|container|protocol|format_id) + \s*(?P[a-zA-Z0-9._-]+) \s*(?P!\s*)?(?P%s)(?P\s*\?)? \s*(?P[a-zA-Z0-9._-]+) \s*$ -- cgit v1.2.3