浏览代码

[udemy] Fix outputs' formats format_id

Sergey M․ 9 年之前
父节点
当前提交
02d7634d24
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/udemy.py

+ 1 - 1
youtube_dl/extractor/udemy.py

@@ -201,7 +201,7 @@ class UdemyIE(InfoExtractor):
         def extract_output_format(src):
             return {
                 'url': src['url'],
-                'format_id': '%sp' % (src.get('label') or format_id),
+                'format_id': '%sp' % (src.get('height') or format_id),
                 'width': int_or_none(src.get('width')),
                 'height': int_or_none(src.get('height')),
                 'vbr': int_or_none(src.get('video_bitrate_in_kbps')),