1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 05:22:51 +08:00

[YoutubeDL] Add support for filesize_approx in format selector (closes #15550)

This commit is contained in:
Sergey M․ 2018-02-10 16:42:45 +07:00 committed by Kade
parent 14adea5bc7
commit eb048b3668

View File

@ -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]?)?)
$