aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-06-28 22:55:28 +0600
committerSergey M․ <dstftw@gmail.com>2015-06-28 22:55:28 +0600
commit9603e8a7d998615d3da1af47461ec9c353ec4e7a (patch)
treea5e2cf76ecbfc4a508a9a5f85fe81a5cc5712900 /youtube_dl
parentc7c040b825160316d23b9d9f3b0f3ab9637d21c2 (diff)
[YoutubeDL] Handle None width and height similarly to formats
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index ef0f71bad..411de9ac9 100755
--- 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