]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[common] introduce chapters field
authorremitamine <remitamine@gmail.com>
Thu, 5 May 2016 20:40:19 +0000 (21:40 +0100)
committerRemita Amine <remitamine@gmail.com>
Tue, 2 May 2017 19:41:48 +0000 (20:41 +0100)
youtube_dl/extractor/common.py

index fba15d446e9f2c52e3159c1142af499484f13648..9541e5b424bd3828374c2e3a99e052971b5995f3 100644 (file)
@@ -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: