aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/sixplay.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-07-01 03:57:59 +0700
committerSergey M․ <dstftw@gmail.com>2016-07-01 03:57:59 +0700
commit0c2ac64bb81462bed0c31be5a2a549601f95f166 (patch)
treec6048837440fa769b3321fc438e6af69db9725af /youtube_dl/extractor/sixplay.py
parenta9eede3913a9e9c7e094907f36a22bc6719ce73d (diff)
[sixplay] Rename preference key to quality in format dict
Diffstat (limited to 'youtube_dl/extractor/sixplay.py')
-rw-r--r--youtube_dl/extractor/sixplay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/sixplay.py b/youtube_dl/extractor/sixplay.py
index f855a1a00..759a332d2 100644
--- a/youtube_dl/extractor/sixplay.py
+++ b/youtube_dl/extractor/sixplay.py
@@ -28,7 +28,7 @@ class SixPlayIE(InfoExtractor):
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 @@ class SixPlayIE(InfoExtractor):
formats.append({
'url': source_url,
'format_id': quality,
- 'preference': preference(quality),
+ 'quality': quality_key(quality),
})
self._sort_formats(formats)