瀏覽代碼

[vlive] Sort live formats (closes #27404)

Sergey M․ 4 年之前
父節點
當前提交
d8008dee4f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/extractor/vlive.py

+ 1 - 0
youtube_dl/extractor/vlive.py

@@ -155,6 +155,7 @@ class VLiveIE(VLiveBaseIE):
                     'old/v3/live/%s/playInfo',
                     'old/v3/live/%s/playInfo',
                     video_id)['result']['adaptiveStreamUrl']
                     video_id)['result']['adaptiveStreamUrl']
                 formats = self._extract_m3u8_formats(stream_url, video_id, 'mp4')
                 formats = self._extract_m3u8_formats(stream_url, video_id, 'mp4')
+                self._sort_formats(formats)
                 info = get_common_fields()
                 info = get_common_fields()
                 info.update({
                 info.update({
                     'title': self._live_title(video['title']),
                     'title': self._live_title(video['title']),