diff options
| author | Sergey M․ <dstftw@gmail.com> | 2017-06-08 22:54:30 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2017-06-08 22:54:30 +0700 | 
| commit | 931adf8cc18e1cc2199d0d4ba5d852f8119ebdb7 (patch) | |
| tree | cec8b6031669c667a98157df09355191359d5463 | |
| parent | c9969434183c562eb9935aa20f147f234aa61e53 (diff) | |
[liveleak] Ensure height is int (closes #13313)
| -rw-r--r-- | youtube_dl/extractor/liveleak.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py index c54519636..b2247a84d 100644 --- a/youtube_dl/extractor/liveleak.py +++ b/youtube_dl/extractor/liveleak.py @@ -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']) | 
