Browse Source

[viki] Lower m3u8 preference

http URLs are always provde the same or better quality
Sergey M․ 9 năm trước cách đây
mục cha
commit
890e6d3309
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      youtube_dl/extractor/viki.py

+ 1 - 1
youtube_dl/extractor/viki.py

@@ -283,7 +283,7 @@ class VikiIE(VikiBaseIE):
                 if format_id == 'm3u8':
                 if format_id == 'm3u8':
                     m3u8_formats = self._extract_m3u8_formats(
                     m3u8_formats = self._extract_m3u8_formats(
                         format_dict['url'], video_id, 'mp4',
                         format_dict['url'], video_id, 'mp4',
-                        entry_protocol='m3u8_native',
+                        entry_protocol='m3u8_native', preference=-1,
                         m3u8_id='m3u8-%s' % protocol, fatal=False)
                         m3u8_id='m3u8-%s' % protocol, fatal=False)
                     # Despite CODECS metadata in m3u8 all video-only formats
                     # Despite CODECS metadata in m3u8 all video-only formats
                     # are actually video+audio
                     # are actually video+audio