mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-27 21:46:54 +01:00
[yinyuetai] Style
This commit is contained in:
parent
e2082ea942
commit
af0f9b0e95
@ -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 = [
|
formats = [{
|
||||||
{'url': format_info['videoUrl'], 'format_id': format_info['qualityLevel'],
|
'url': format_info['videoUrl'],
|
||||||
'format': format_info['qualityLevelName'], 'filesize': format_info['fileSize'],
|
'format_id': format_info['qualityLevel'],
|
||||||
'ext': 'mp4', 'preference': format_info['bitrate']}
|
'format': format_info['qualityLevelName'],
|
||||||
for format_info in info['videoUrlModels']
|
'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…
Reference in New Issue
Block a user