mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-08 01:27:01 +01:00
[liveleak] Ensure height is int (closes #13313)
This commit is contained in:
parent
c996943418
commit
931adf8cc1
@ -115,8 +115,9 @@ class LiveLeakIE(InfoExtractor):
|
|||||||
|
|
||||||
for a_format in info_dict['formats']:
|
for a_format in info_dict['formats']:
|
||||||
if not a_format.get('height'):
|
if not a_format.get('height'):
|
||||||
a_format['height'] = self._search_regex(
|
a_format['height'] = int_or_none(self._search_regex(
|
||||||
r'([0-9]+)p\.mp4', a_format['url'], 'height label', default=None)
|
r'([0-9]+)p\.mp4', a_format['url'], 'height label',
|
||||||
|
default=None))
|
||||||
|
|
||||||
self._sort_formats(info_dict['formats'])
|
self._sort_formats(info_dict['formats'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user