projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9eede3
)
[sixplay] Rename preference key to quality in format dict
author
Sergey M․
<dstftw@gmail.com>
Thu, 30 Jun 2016 20:57:59 +0000
(
03:57
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 30 Jun 2016 20:57:59 +0000
(
03:57
+0700)
youtube_dl/extractor/sixplay.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sixplay.py
b/youtube_dl/extractor/sixplay.py
index f855a1a00cee5ddf037f2f96b81ec67c0329c924..759a332d28f92b9be043c2d26ac062f02d2031e0 100644
(file)
--- 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)