Skip to content

Commit

Permalink
[Loom] Add missing parsing function
Browse files Browse the repository at this point in the history
  • Loading branch information
wongyiuhang committed Feb 24, 2021
1 parent 34e6a6b commit 29c4168
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions youtube_dl/extractor/loom.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
compat_urllib_request
)
from ..utils import (
int_or_none,
js_to_json,
try_get,
unified_timestamp,
Expand Down Expand Up @@ -90,8 +91,8 @@ def _real_extract(self, url):
'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)
Expand Down

0 comments on commit 29c4168

Please sign in to comment.