|
|
@ -6,6 +6,7 @@ import json
|
|
|
|
from .common import InfoExtractor
|
|
|
|
from .common import InfoExtractor
|
|
|
|
from ..utils import (
|
|
|
|
from ..utils import (
|
|
|
|
compat_urlparse,
|
|
|
|
compat_urlparse,
|
|
|
|
|
|
|
|
int_or_none,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -110,8 +111,8 @@ class AppleTrailersIE(InfoExtractor):
|
|
|
|
formats.append({
|
|
|
|
formats.append({
|
|
|
|
'url': format_url,
|
|
|
|
'url': format_url,
|
|
|
|
'format': format['type'],
|
|
|
|
'format': format['type'],
|
|
|
|
'width': format['width'],
|
|
|
|
'width': int_or_none(format['width']),
|
|
|
|
'height': int(format['height']),
|
|
|
|
'height': int_or_none(format['height']),
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
self._sort_formats(formats)
|
|
|
|
self._sort_formats(formats)
|
|
|
|