From: Sergey M․ Date: Sun, 10 May 2015 02:54:50 +0000 (+0600) Subject: [life:embed] Sort formats X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=95eb1adda8692a61db639fb21344ad22d1847044;p=youtube-dl [life:embed] Sort formats --- diff --git a/youtube_dl/extractor/lifenews.py b/youtube_dl/extractor/lifenews.py index 7f39fa4cf..42cb6e35f 100644 --- a/youtube_dl/extractor/lifenews.py +++ b/youtube_dl/extractor/lifenews.py @@ -156,6 +156,7 @@ class LifeEmbedIE(InfoExtractor): 'format_id': ext, 'preference': 1, }) + self._sort_formats(formats) thumbnail = self._search_regex( r'"image"\s*:\s*"([^"]+)', webpage, 'thumbnail', default=None)