[piksel] Fix sorting

This commit is contained in:
pukkandan 2021-11-05 20:39:00 +05:30
parent a9d4da606d
commit df6c409d1f
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ def get_clean_field(key):
m3u8_id='hls', fatal=False)
for f in info['formats']:
f['language'] = lang
self._sort_formats(info['formats'])
else:
info.update({
'_type': 'url_transparent',

View File

@ -167,7 +167,7 @@ def process_asset_files(asset_files):
re.sub(r'/od/[^/]+/', '/od/http/', smil_url), video_id,
transform_source=transform_source, fatal=False))
self._sort_formats(formats)
self._sort_formats(formats, ('tbr', )) # Incomplete resolution information
subtitles = {}
for caption in video_data.get('captions', []):