From: Sergey M․ Date: Sat, 10 Feb 2018 09:42:45 +0000 (+0700) Subject: [YoutubeDL] Add support for filesize_approx in format selector (closes #15550) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=a03a3c80fe7174e200af32425a77bfa2bde980d8;p=youtube-dl.git [YoutubeDL] Add support for filesize_approx in format selector (closes #15550) --- 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* - (?Pwidth|height|tbr|abr|vbr|asr|filesize|fps) + (?Pwidth|height|tbr|abr|vbr|asr|filesize|filesize_approx|fps) \s*(?P%s)(?P\s*\?)?\s* (?P[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?) $