[vlive] Sort live formats (closes #27404)
authorSergey M․ <dstftw@gmail.com>
Sun, 13 Dec 2020 08:04:18 +0000 (15:04 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 13 Dec 2020 08:04:18 +0000 (15:04 +0700)
youtube_dl/extractor/vlive.py

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