[YoutubeDL] Allow format filtering using audio language(#16209)

This commit is contained in:
Remita Amine 2021-02-26 15:53:16 +01:00 committed by Laura Liberda
parent c7d0af171f
commit 10af8572d4

View file

@ -1087,7 +1087,7 @@ class HaruhiDL(object):
'*=': lambda attr, value: value in attr,
}
str_operator_rex = re.compile(r'''(?x)
\s*(?P<key>ext|acodec|vcodec|container|protocol|format_id)
\s*(?P<key>ext|acodec|vcodec|container|protocol|format_id|language)
\s*(?P<negation>!\s*)?(?P<op>%s)(?P<none_inclusive>\s*\?)?
\s*(?P<value>[a-zA-Z0-9._-]+)
\s*$