[noco] Fix bitrates
authorSergey M․ <dstftw@gmail.com>
Thu, 17 Dec 2015 16:18:28 +0000 (22:18 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 17 Dec 2015 16:18:28 +0000 (22:18 +0600)
youtube_dl/extractor/noco.py

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