mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
[sixplay] Rename preference key to quality in format dict
This commit is contained in:
parent
a9eede3913
commit
0c2ac64bb8
@ -28,7 +28,7 @@ def _real_extract(self, url):
|
||||
video_id)
|
||||
video_data = clip_data['videoInfo']
|
||||
|
||||
preference = qualities(['lq', 'sd', 'hq', 'hd'])
|
||||
quality_key = qualities(['lq', 'sd', 'hq', 'hd'])
|
||||
formats = []
|
||||
for source in clip_data['sources']:
|
||||
source_type, source_url = source.get('type'), source.get('src')
|
||||
@ -46,7 +46,7 @@ def _real_extract(self, url):
|
||||
formats.append({
|
||||
'url': source_url,
|
||||
'format_id': quality,
|
||||
'preference': preference(quality),
|
||||
'quality': quality_key(quality),
|
||||
})
|
||||
self._sort_formats(formats)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user