commit a03a3c80fe7174e200af32425a77bfa2bde980d8
parent 9d5871fdffb945bf6084a4c30816c6917abd875b
Author: Sergey M․ <dstftw@gmail.com>
Date: Sat, 10 Feb 2018 16:42:45 +0700
[YoutubeDL] Add support for filesize_approx in format selector (closes #15550)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
@@ -1033,7 +1033,7 @@ class YoutubeDL(object):
'!=': operator.ne,
}
operator_rex = re.compile(r'''(?x)\s*
- (?P<key>width|height|tbr|abr|vbr|asr|filesize|fps)
+ (?P<key>width|height|tbr|abr|vbr|asr|filesize|filesize_approx|fps)
\s*(?P<op>%s)(?P<none_inclusive>\s*\?)?\s*
(?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?)
$