diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-07-23 02:13:51 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-07-23 02:13:51 +0600 |
commit | c59b61c0da8fc0fb73d745de59122e290a33b122 (patch) | |
tree | d6d7151ddeb47add08a8602318d55693fbb954b8 /youtube_dl | |
parent | 3e214851a49992b010ae90ef6dbaed11f70ceb3a (diff) |
[viki] Fix height (Closes #6333)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/viki.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/viki.py b/youtube_dl/extractor/viki.py index 51cdc6b65..3a7e9a0f2 100644 --- 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( |