about summary refs log tree commit diff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-10 16:42:45 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-10 16:42:45 +0700
commita03a3c80fe7174e200af32425a77bfa2bde980d8 (patch)
treeff243065b2160fa62da7da720f06bd2c48032f33 /youtube_dl/YoutubeDL.py
parent9d5871fdffb945bf6084a4c30816c6917abd875b (diff)
downloadyoutube-dl-a03a3c80fe7174e200af32425a77bfa2bde980d8.tar.gz
youtube-dl-a03a3c80fe7174e200af32425a77bfa2bde980d8.tar.xz
youtube-dl-a03a3c80fe7174e200af32425a77bfa2bde980d8.zip
[YoutubeDL] Add support for filesize_approx in format selector (closes #15550)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 925d095de..523dd1f7d 100755
--- 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]?)?)
             $