Browse Source

[yinyuetai] Style

master
Yen Chi Hsuan 9 years ago
parent
commit
af0f9b0e95
1 changed files with 8 additions and 6 deletions
  1. 14
      youtube_dl/extractor/yinyuetai.py

14
youtube_dl/extractor/yinyuetai.py

@ -32,12 +32,14 @@ class YinYueTaiIE(InfoExtractor):
if info['error']: if info['error']:
raise ExtractorError(info['errorMsg'], expected=True) 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) self._sort_formats(formats)
return { return {

Loading…
Cancel
Save