1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[noco] Fix bitrates

This commit is contained in:
Sergey M․ 2015-12-17 22:18:28 +06:00
parent 7824e1f6a6
commit 9dc1d94a0c

View file

@ -177,8 +177,8 @@ class NocoIE(InfoExtractor):
'format_id': format_id_extended, 'format_id': format_id_extended,
'width': int_or_none(fmt.get('res_width')), 'width': int_or_none(fmt.get('res_width')),
'height': int_or_none(fmt.get('res_lines')), 'height': int_or_none(fmt.get('res_lines')),
'abr': int_or_none(fmt.get('audiobitrate')), 'abr': int_or_none(fmt.get('audiobitrate'), 1000),
'vbr': int_or_none(fmt.get('videobitrate')), 'vbr': int_or_none(fmt.get('videobitrate'), 1000),
'filesize': int_or_none(fmt.get('filesize')), 'filesize': int_or_none(fmt.get('filesize')),
'format_note': qualities[format_id].get('quality_name'), 'format_note': qualities[format_id].get('quality_name'),
'quality': qualities[format_id].get('priority'), 'quality': qualities[format_id].get('priority'),