Skip to content

A feature-rich command-line audio/video downloader

[life:embed] Sort formats

Sergey M․95eb1adda869
diff --git a/youtube_dl/extractor/lifenews.py b/youtube_dl/extractor/lifenews.py
index 7f39fa4cfa..42cb6e35f8 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)