projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c996943
)
[liveleak] Ensure height is int (closes #13313)
author
Sergey M․
<dstftw@gmail.com>
Thu, 8 Jun 2017 15:54:30 +0000
(22:54 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 8 Jun 2017 15:54:30 +0000
(22:54 +0700)
youtube_dl/extractor/liveleak.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/liveleak.py
b/youtube_dl/extractor/liveleak.py
index c54519636d064ea7a0d9b0ac543c5ec190f60306..b2247a84d625c76482e140b8f891f8512670a3c5 100644
(file)
--- 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'])