From: Sergey M․ Date: Wed, 4 Jul 2018 19:14:50 +0000 (+0700) Subject: [dplayit] Sort formats X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e15141adaee67d1e9b9e97c17b73fe4c052c3449;p=youtube-dl [dplayit] Sort formats --- diff --git a/youtube_dl/extractor/dplay.py b/youtube_dl/extractor/dplay.py index a95e3213c..ebf59512c 100644 --- a/youtube_dl/extractor/dplay.py +++ b/youtube_dl/extractor/dplay.py @@ -342,6 +342,7 @@ class DPlayItIE(InfoExtractor): formats = self._extract_m3u8_formats( hls_url, display_id, ext='mp4', entry_protocol='m3u8_native', m3u8_id='hls') + self._sort_formats(formats) series = self._html_search_regex( r'(?s)]+class=["\'].*?\bshow_title\b.*?["\'][^>]*>(.+?)',