Browse Source

[viki] Fix height (Closes #6333)

Sergey M․ 10 năm trước cách đây
mục cha
commit
c59b61c0da
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      youtube_dl/extractor/viki.py

+ 2 - 2
youtube_dl/extractor/viki.py

@@ -242,8 +242,8 @@ class VikiIE(VikiBaseIE):
 
 
         formats = []
         formats = []
         for format_id, stream_dict in streams.items():
         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():
             for protocol, format_dict in stream_dict.items():
                 if format_id == 'm3u8':
                 if format_id == 'm3u8':
                     formats = self._extract_m3u8_formats(
                     formats = self._extract_m3u8_formats(