diff options
author | Yen Chi Hsuan <[email protected]> | 2015-07-09 00:54:37 +0800 |
---|---|---|
committer | Yen Chi Hsuan <[email protected]> | 2015-07-09 00:54:37 +0800 |
commit | af0f9b0e95233862e758140b282497d04edfb885 (patch) | |
tree | 487329d0824e764f69967b89bf03865094dad5f7 /youtube_dl/extractor/yinyuetai.py | |
parent | e2082ea9422aadf7ae2580d9333008279cda51f0 (diff) | |
download | youtube-dl-af0f9b0e95233862e758140b282497d04edfb885.tar.gz youtube-dl-af0f9b0e95233862e758140b282497d04edfb885.zip |
[yinyuetai] Style
Diffstat (limited to 'youtube_dl/extractor/yinyuetai.py')
-rw-r--r-- | youtube_dl/extractor/yinyuetai.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/youtube_dl/extractor/yinyuetai.py b/youtube_dl/extractor/yinyuetai.py index 41ee89da4..a4ada4872 100644 --- a/youtube_dl/extractor/yinyuetai.py +++ b/youtube_dl/extractor/yinyuetai.py @@ -32,12 +32,14 @@ class YinYueTaiIE(InfoExtractor): if info['error']: raise ExtractorError(info['errorMsg'], expected=True) - formats = [ - {'url': format_info['videoUrl'], 'format_id': format_info['qualityLevel'], - 'format': format_info['qualityLevelName'], 'filesize': format_info['fileSize'], - 'ext': 'mp4', 'preference': format_info['bitrate']} - for format_info in info['videoUrlModels'] - ] + formats = [{ + 'url': format_info['videoUrl'], + 'format_id': format_info['qualityLevel'], + 'format': format_info['qualityLevelName'], + 'filesize': format_info['fileSize'], + 'ext': 'mp4', + 'preference': format_info['bitrate'], + } for format_info in info['videoUrlModels']] self._sort_formats(formats) return { |