1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-10-03 19:17:31 +08:00

[YoutubeDL] Allow filtering by audio sampling rate

This commit is contained in:
Sergey M․ 2015-02-09 01:09:45 +06:00
parent 9ddb6925bf
commit 2ec19e9558

View File

@ -826,7 +826,7 @@ class YoutubeDL(object):
'!=': operator.ne,
}
operator_rex = re.compile(r'''(?x)\s*\[
(?P<key>width|height|tbr|abr|vbr|filesize|fps)
(?P<key>width|height|tbr|abr|vbr|asr|filesize|fps)
\s*(?P<op>%s)(?P<none_inclusive>\s*\?)?\s*
(?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?)
\]$