1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 21:57:16 +08:00

Added format_id to the filers on -f.

This commit is contained in:
John Peel 2016-03-18 00:33:03 -07:00
parent e3d17b3c07
commit 58f397f129

View File

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