[yinyuetai] Style

pull/6434/head^2
Yen Chi Hsuan 2015-07-09 00:54:37 +08:00
parent e2082ea942
commit af0f9b0e95
1 changed files with 8 additions and 6 deletions

View File

@ -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 {