Browse Source

[liveleak] Ensure height is int (closes #13313)

master-ytdl-org
Sergey M․ 8 years ago
parent
commit
931adf8cc1
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/liveleak.py

+ 3
- 2
youtube_dl/extractor/liveleak.py View File

@ -115,8 +115,9 @@ class LiveLeakIE(InfoExtractor):
for a_format in info_dict['formats']:
if not a_format.get('height'):
a_format['height'] = self._search_regex(
r'([0-9]+)p\.mp4', a_format['url'], 'height label', default=None)
a_format['height'] = int_or_none(self._search_regex(
r'([0-9]+)p\.mp4', a_format['url'], 'height label',
default=None))
self._sort_formats(info_dict['formats'])


Loading…
Cancel
Save