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:
parent
8b8d196f65
commit
2e31ae21dd
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue