|
|
@ -90,18 +90,14 @@ class AppleConnectIE(InfoExtractor):
|
|
|
|
for format_id, src_url in traverse_obj(attributes, (
|
|
|
|
for format_id, src_url in traverse_obj(attributes, (
|
|
|
|
'assetTokens', {dict.items}, lambda _, v: url_or_none(v[1]),
|
|
|
|
'assetTokens', {dict.items}, lambda _, v: url_or_none(v[1]),
|
|
|
|
)):
|
|
|
|
)):
|
|
|
|
height = self._QUALITIES.get(format_id)
|
|
|
|
formats.append({
|
|
|
|
fmt = {
|
|
|
|
|
|
|
|
'ext': 'm4v',
|
|
|
|
'ext': 'm4v',
|
|
|
|
'format_id': format_id,
|
|
|
|
'format_id': format_id,
|
|
|
|
'height': height,
|
|
|
|
'height': self._QUALITIES.get(format_id),
|
|
|
|
'quality': quality(format_id),
|
|
|
|
'quality': quality(format_id),
|
|
|
|
'url': src_url,
|
|
|
|
'url': src_url,
|
|
|
|
**parse_resolution(update_url(src_url, query=None), lenient=True),
|
|
|
|
**parse_resolution(update_url(src_url, query=None), lenient=True),
|
|
|
|
}
|
|
|
|
})
|
|
|
|
if not height:
|
|
|
|
|
|
|
|
fmt['width'] = None
|
|
|
|
|
|
|
|
formats.append(fmt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'id': video_id,
|
|
|
|
'id': video_id,
|
|
|
|