From 29c4168ceca7943fec933992358cd71a37965e64 Mon Sep 17 00:00:00 2001 From: Wong Yiu Hang Date: Thu, 25 Feb 2021 02:24:46 +0800 Subject: [PATCH] [Loom] Add missing parsing function --- youtube_dl/extractor/loom.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/loom.py b/youtube_dl/extractor/loom.py index dc381616c..53137f5a5 100644 --- a/youtube_dl/extractor/loom.py +++ b/youtube_dl/extractor/loom.py @@ -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)