From 5ab1d24b0d9e5ee4d3ca9af31fc01a64f0ebbfbd Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 17 Oct 2020 16:11:09 +0530 Subject: [PATCH] Relaxed validation for format filters so that any arbitary field can be used --- youtube_dl/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 19370f62b..4893baeea 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1073,7 +1073,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*$