浏览代码

Document that format_id field should be present

Philipp Hagemeister 11 年之前
父节点
当前提交
5d4f3985be
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/common.py

+ 2 - 1
youtube_dl/extractor/common.py

@@ -51,7 +51,8 @@ class InfoExtractor(object):
                                  Calculated from the format_id, width, height.
                                  Calculated from the format_id, width, height.
                                  and format_note fields if missing.
                                  and format_note fields if missing.
                     * format_id  A short description of the format
                     * format_id  A short description of the format
-                                 ("mp4_h264_opus" or "19")
+                                 ("mp4_h264_opus" or "19").
+                                Technically optional, but strongly recommended.
                     * format_note Additional info about the format
                     * format_note Additional info about the format
                                  ("3D" or "DASH video")
                                  ("3D" or "DASH video")
                     * width      Width of the video, if known
                     * width      Width of the video, if known