mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 19:52:40 +01:00
[piksel] Fix sorting
This commit is contained in:
parent
a9d4da606d
commit
df6c409d1f
@ -73,6 +73,7 @@ def get_clean_field(key):
|
|||||||
m3u8_id='hls', fatal=False)
|
m3u8_id='hls', fatal=False)
|
||||||
for f in info['formats']:
|
for f in info['formats']:
|
||||||
f['language'] = lang
|
f['language'] = lang
|
||||||
|
self._sort_formats(info['formats'])
|
||||||
else:
|
else:
|
||||||
info.update({
|
info.update({
|
||||||
'_type': 'url_transparent',
|
'_type': 'url_transparent',
|
||||||
|
@ -167,7 +167,7 @@ def process_asset_files(asset_files):
|
|||||||
re.sub(r'/od/[^/]+/', '/od/http/', smil_url), video_id,
|
re.sub(r'/od/[^/]+/', '/od/http/', smil_url), video_id,
|
||||||
transform_source=transform_source, fatal=False))
|
transform_source=transform_source, fatal=False))
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats, ('tbr', )) # Incomplete resolution information
|
||||||
|
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
for caption in video_data.get('captions', []):
|
for caption in video_data.get('captions', []):
|
||||||
|
Loading…
Reference in New Issue
Block a user