sort formats before return

pull/32884/head
nicole trinity 7 months ago
parent 8b8d196f65
commit 2e31ae21dd

@ -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,
} }

Loading…
Cancel
Save