mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-27 23:56:51 +01:00
[Loom] Add missing parsing function
This commit is contained in:
parent
34e6a6b559
commit
29c4168cec
@ -11,6 +11,7 @@ from ..compat import (
|
|||||||
compat_urllib_request
|
compat_urllib_request
|
||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
|
int_or_none,
|
||||||
js_to_json,
|
js_to_json,
|
||||||
try_get,
|
try_get,
|
||||||
unified_timestamp,
|
unified_timestamp,
|
||||||
@ -90,8 +91,8 @@ class LoomIE(LoomBaseInfoIE):
|
|||||||
'url': url,
|
'url': url,
|
||||||
'ext': ext,
|
'ext': ext,
|
||||||
'format_id': type,
|
'format_id': type,
|
||||||
'width': try_get(info, lambda x: x['video_properties']['width']),
|
'width': int_or_none(try_get(info, lambda x: x['video_properties']['width'])),
|
||||||
'height': try_get(info, lambda x: x['video_properties']['height'])
|
'height': int_or_none(try_get(info, lambda x: x['video_properties']['height']))
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
credentials = compat_urllib_parse_urlencode(part_credentials)
|
credentials = compat_urllib_parse_urlencode(part_credentials)
|
||||||
|
Loading…
Reference in New Issue
Block a user