瀏覽代碼

[common] introduce chapters field

remitamine 9 年之前
父節點
當前提交
55949fede6
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      youtube_dl/extractor/common.py

+ 4 - 0
youtube_dl/extractor/common.py

@@ -245,6 +245,10 @@ class InfoExtractor(object):
                     specified in the URL.
     end_time:       Time in seconds where the reproduction should end, as
                     specified in the URL.
+    chapters:       A list of dictionaries, with the following entries:
+                        * "start_time" - The start time of the chapter in seconds
+                        * "end_time" - The end time of the chapter in seconds
+                        * "title" (optional, string)
 
     The following fields should only be used when the video belongs to some logical
     chapter or section: