projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
317f7ab
)
[YoutubeDL] Fix incomplete formats check
author
Sergey M․
<dstftw@gmail.com>
Fri, 15 Jul 2016 18:18:05 +0000
(
01:18
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 15 Jul 2016 18:18:05 +0000
(
01:18
+0700)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index cf9cd82975a6ff5b703cbb9f9d75bdf659b38091..6551f086f8d8985f5a33dc56906c5a5722b603bb 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-1396,12
+1396,11
@@
class YoutubeDL(object):
# instead of just formats.
# This fixes incorrect format selection issue (see
# https://github.com/rg3/youtube-dl/issues/10083).
# instead of just formats.
# This fixes incorrect format selection issue (see
# https://github.com/rg3/youtube-dl/issues/10083).
- incomplete_formats =
all
(
+ incomplete_formats = (
# All formats are video-only or
# All formats are video-only or
-
f.get('vcodec') != 'none' and f.get('acodec') == 'none'
or
+
all(f.get('vcodec') != 'none' and f.get('acodec') == 'none' for f in formats)
or
# all formats are audio-only
# all formats are audio-only
- f.get('vcodec') == 'none' and f.get('acodec') != 'none'
- for f in formats)
+ all(f.get('vcodec') == 'none' and f.get('acodec') != 'none' for f in formats))
ctx = {
'formats': formats,
ctx = {
'formats': formats,