diff options
author | Philipp Hagemeister <[email protected]> | 2014-08-10 13:04:45 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-08-10 13:04:45 +0200 |
commit | 9572013de9b994e2c20e972f13ce0a54cbd3f886 (patch) | |
tree | 258fa976bc3108fa3117b5efbeb04b5b73613786 /youtube_dl/extractor/appletrailers.py | |
parent | 3a5beb0ca149cd0b1df5b29984033e20ccb85a61 (diff) | |
download | youtube-dl-9572013de9b994e2c20e972f13ce0a54cbd3f886.tar.gz youtube-dl-9572013de9b994e2c20e972f13ce0a54cbd3f886.zip |
[appletrailers] Support height-less videos
Diffstat (limited to 'youtube_dl/extractor/appletrailers.py')
-rw-r--r-- | youtube_dl/extractor/appletrailers.py | 5 |
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) |