0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[yinyuetai] Style

This commit is contained in:
Yen Chi Hsuan 2015-07-09 00:54:37 +08:00
parent e2082ea942
commit af0f9b0e95

View file

@ -32,12 +32,14 @@ def _real_extract(self, url):
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 {