1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-24 00:36:52 +01:00

[Loom] Add missing parsing function

This commit is contained in:
Wong Yiu Hang 2021-02-25 02:24:46 +08:00
parent 34e6a6b559
commit 29c4168cec

View File

@ -11,6 +11,7 @@ from ..compat import (
compat_urllib_request
)
from ..utils import (
int_or_none,
js_to_json,
try_get,
unified_timestamp,
@ -90,8 +91,8 @@ class LoomIE(LoomBaseInfoIE):
'url': url,
'ext': ext,
'format_id': type,
'width': try_get(info, lambda x: x['video_properties']['width']),
'height': try_get(info, lambda x: x['video_properties']['height'])
'width': int_or_none(try_get(info, lambda x: x['video_properties']['width'])),
'height': int_or_none(try_get(info, lambda x: x['video_properties']['height']))
})
else:
credentials = compat_urllib_parse_urlencode(part_credentials)