diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-28 23:05:49 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-28 23:05:49 +0600 |
commit | e8b9ee5e08eee026016b4c06e7d47abaa82c5031 (patch) | |
tree | e6643b57b2a590fdf8dda1fa7ccdd064df989969 /youtube_dl/YoutubeDL.py | |
parent | ac0474f89d3e6f8c8c1fb3223a16a18a2fd02bcb (diff) | |
parent | d16154d16327907279eff48a4018c495726d401a (diff) | |
download | youtube-dl-e8b9ee5e08eee026016b4c06e7d47abaa82c5031.tar.xz |
Merge branch 'gebn-moviefap'
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 2 |
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 |