projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c040b
)
[YoutubeDL] Handle None width and height similarly to formats
author
Sergey M․
<dstftw@gmail.com>
Sun, 28 Jun 2015 16:55:28 +0000
(22:55 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 28 Jun 2015 16:55:28 +0000
(22:55 +0600)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index ef0f71bad45d6057dc99c1ce968629a0e357e57b..411de9ac9399d2ec565a6dc344e4175372099d2b 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-1008,7
+1008,7
@@
class YoutubeDL(object):
t.get('preference'), t.get('width'), t.get('height'),
t.get('id'), t.get('url')))
for i, t in enumerate(thumbnails):
- if
'width' in t and 'height' in t
:
+ if
t.get('width') and t.get('height')
:
t['resolution'] = '%dx%d' % (t['width'], t['height'])
if t.get('id') is None:
t['id'] = '%d' % i