mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-01-07 17:16:08 +00:00
[common] introduce chapters field
This commit is contained in:
parent
7fc875195f
commit
55949fede6
|
@ -245,6 +245,10 @@ class InfoExtractor(object):
|
||||||
specified in the URL.
|
specified in the URL.
|
||||||
end_time: Time in seconds where the reproduction should end, as
|
end_time: Time in seconds where the reproduction should end, as
|
||||||
specified in the URL.
|
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
|
The following fields should only be used when the video belongs to some logical
|
||||||
chapter or section:
|
chapter or section:
|
||||||
|
|
Loading…
Reference in a new issue