mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-24 11:11:54 +00:00
sort formats before return
This commit is contained in:
parent
8b8d196f65
commit
2e31ae21dd
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue