about summary refs log tree commit diff
path: root/youtube_dl/extractor/appletrailers.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-08-10 13:04:45 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-08-10 13:04:45 +0200
commit9572013de9b994e2c20e972f13ce0a54cbd3f886 (patch)
tree258fa976bc3108fa3117b5efbeb04b5b73613786 /youtube_dl/extractor/appletrailers.py
parent3a5beb0ca149cd0b1df5b29984033e20ccb85a61 (diff)
downloadyoutube-dl-9572013de9b994e2c20e972f13ce0a54cbd3f886.tar.gz
youtube-dl-9572013de9b994e2c20e972f13ce0a54cbd3f886.tar.xz
youtube-dl-9572013de9b994e2c20e972f13ce0a54cbd3f886.zip
[appletrailers] Support height-less videos
Diffstat (limited to 'youtube_dl/extractor/appletrailers.py')
-rw-r--r--youtube_dl/extractor/appletrailers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/appletrailers.py b/youtube_dl/extractor/appletrailers.py
index dc8657b67..4359b88d1 100644
--- a/youtube_dl/extractor/appletrailers.py
+++ b/youtube_dl/extractor/appletrailers.py
@@ -6,6 +6,7 @@ import json
 from .common import InfoExtractor
 from ..utils import (
     compat_urlparse,
+    int_or_none,
 )
 
 
@@ -110,8 +111,8 @@ class AppleTrailersIE(InfoExtractor):
                 formats.append({
                     'url': format_url,
                     'format': format['type'],
-                    'width': format['width'],
-                    'height': int(format['height']),
+                    'width': int_or_none(format['width']),
+                    'height': int_or_none(format['height']),
                 })
 
             self._sort_formats(formats)