[YoutubeDL] Add support for filesize_approx in format selector (closes #15550)
authorSergey M․ <dstftw@gmail.com>
Sat, 10 Feb 2018 09:42:45 +0000 (16:42 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 10 Feb 2018 09:42:45 +0000 (16:42 +0700)
youtube_dl/YoutubeDL.py

index 925d095dec1c32c8b2e4d8bac7cdad452844e320..523dd1f7daf80839839d7b8a014f86897640b425 100755 (executable)
@@ -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]?)?)
             $