commit 95eb1adda8692a61db639fb21344ad22d1847044
parent 3800b908b1976f242b41d5a2d114418559ce3b48
Author: Sergey M․ <dstftw@gmail.com>
Date: Sun, 10 May 2015 08:54:50 +0600
[life:embed] Sort formats
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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)