projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d5871f
)
[YoutubeDL] Add support for filesize_approx in format selector (closes #15550)
author
Sergey M․
<dstftw@gmail.com>
Sat, 10 Feb 2018 09:42:45 +0000
(16:42 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 10 Feb 2018 09:42:45 +0000
(16:42 +0700)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 925d095dec1c32c8b2e4d8bac7cdad452844e320..523dd1f7daf80839839d7b8a014f86897640b425 100755
(executable)
--- 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|f
ilesize_approx|f
ps)
\s*(?P<op>%s)(?P<none_inclusive>\s*\?)?\s*
(?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?)
$