From 2e31ae21dd88349fe9b92efaf2a8223b723ff8e8 Mon Sep 17 00:00:00 2001 From: nicole trinity Date: Tue, 30 Jul 2024 10:03:41 -0400 Subject: [PATCH] sort formats before return --- youtube_dl/extractor/la1ere.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/youtube_dl/extractor/la1ere.py b/youtube_dl/extractor/la1ere.py index 2952c6a0d..2f2da9a4a 100644 --- a/youtube_dl/extractor/la1ere.py +++ b/youtube_dl/extractor/la1ere.py @@ -47,6 +47,7 @@ class La1ereExtractorPageIE(La1ereExrtractorBaseIE): # get the mpd playlist formats = self._extract_m3u8_formats(playlist_url, video_id) + self._sort_formats(formats) return { 'id': video_id, @@ -77,9 +78,13 @@ class La1ereExtractorShowPageIE(La1ereExrtractorBaseIE): # get the m3u8 playlist formats = self._extract_m3u8_formats(playlist_url, video_id) + self._sort_formats(formats) return { 'id': video_id, 'title': title, 'formats': formats, } + + +