1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-24 19:22:06 +00:00

sort formats before return

This commit is contained in:
nicole trinity 2024-07-30 10:03:41 -04:00
parent 8b8d196f65
commit 2e31ae21dd

View file

@ -47,6 +47,7 @@ class La1ereExtractorPageIE(La1ereExrtractorBaseIE):
# get the mpd playlist # get the mpd playlist
formats = self._extract_m3u8_formats(playlist_url, video_id) formats = self._extract_m3u8_formats(playlist_url, video_id)
self._sort_formats(formats)
return { return {
'id': video_id, 'id': video_id,
@ -77,9 +78,13 @@ class La1ereExtractorShowPageIE(La1ereExrtractorBaseIE):
# get the m3u8 playlist # get the m3u8 playlist
formats = self._extract_m3u8_formats(playlist_url, video_id) formats = self._extract_m3u8_formats(playlist_url, video_id)
self._sort_formats(formats)
return { return {
'id': video_id, 'id': video_id,
'title': title, 'title': title,
'formats': formats, 'formats': formats,
} }