Browse Source
[YoutubeDL] Add support for filesize_approx in format selector (closes #15550)
master
Sergey M․
6 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
1 additions and
1 deletions
-
youtube_dl/YoutubeDL.py
|
@ -1033,7 +1033,7 @@ class YoutubeDL(object): |
|
|
'!=': operator.ne, |
|
|
'!=': operator.ne, |
|
|
} |
|
|
} |
|
|
operator_rex = re.compile(r'''(?x)\s* |
|
|
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* |
|
|
\s*(?P<op>%s)(?P<none_inclusive>\s*\?)?\s* |
|
|
(?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?) |
|
|
(?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?) |
|
|
$ |
|
|
$ |
|
|