projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e21485
)
[viki] Fix height (Closes #6333)
author
Sergey M․
<dstftw@gmail.com>
Wed, 22 Jul 2015 20:13:51 +0000
(
02:13
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 22 Jul 2015 20:13:51 +0000
(
02:13
+0600)
youtube_dl/extractor/viki.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/viki.py
b/youtube_dl/extractor/viki.py
index 51cdc6b65143aaf4a0d2823ffa8c859c96e25972..3a7e9a0f2b42accd15d9589f7fbffd7f7b775562 100644
(file)
--- a/
youtube_dl/extractor/viki.py
+++ b/
youtube_dl/extractor/viki.py
@@
-242,8
+242,8
@@
class VikiIE(VikiBaseIE):
formats = []
for format_id, stream_dict in streams.items():
- height = self._search_regex(
- r'^(\d+)[pP]$', format_id, 'height', default=None)
+ height =
int_or_none(
self._search_regex(
+ r'^(\d+)[pP]$', format_id, 'height', default=None)
)
for protocol, format_dict in stream_dict.items():
if format_id == 'm3u8':
formats = self._extract_m3u8_formats(