aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-05-05 21:40:19 +0100
committerRemita Amine <remitamine@gmail.com>2017-05-02 20:41:48 +0100
commit55949fede6da7c2d612f56863196eadcbc583de9 (patch)
treed47d3af9b87ab7ab3d307ef9cef23cdb4a46c624 /youtube_dl
parent7fc875195fd74c235d6ca86afc642f683a485a4b (diff)
[common] introduce chapters field
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index fba15d446..9541e5b42 100644
--- a/youtube_dl/extractor/common.py
+++ b/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: