Added format_id to the filers on -f.
authorJohn Peel <john@dgby.org>
Fri, 18 Mar 2016 07:33:03 +0000 (00:33 -0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 18 Mar 2016 17:59:24 +0000 (23:59 +0600)
youtube_dl/YoutubeDL.py

index 8c651cd52375e1dcf986307b57f447fce4025543..93b6ca54d615206c029e75aa5dd96a61a650dabd 100755 (executable)
@@ -905,7 +905,7 @@ class YoutubeDL(object):
                 '*=': lambda attr, value: value in attr,
             }
             str_operator_rex = re.compile(r'''(?x)
-                \s*(?P<key>ext|acodec|vcodec|container|protocol)
+                \s*(?P<key>ext|acodec|vcodec|container|protocol|format_id)
                 \s*(?P<op>%s)(?P<none_inclusive>\s*\?)?
                 \s*(?P<value>[a-zA-Z0-9._-]+)
                 \s*$