[extractor/youtube] Extract heatmap data (#7100)

Closes #3888
Authored by: tntmod54321
This commit is contained in:
Audrey
2023-05-26 08:24:39 -04:00
committed by GitHub
parent 4ad58667c1
commit 5caf30dbc3
2 changed files with 19 additions and 0 deletions

View File

@@ -350,6 +350,10 @@ class InfoExtractor:
* "start_time" - The start time of the chapter in seconds
* "end_time" - The end time of the chapter in seconds
* "title" (optional, string)
heatmap: A list of dictionaries, with the following entries:
* "start_time" - The start time of the data point in seconds
* "end_time" - The end time of the data point in seconds
* "value" - The normalized value of the data point (float between 0 and 1)
playable_in_embed: Whether this video is allowed to play in embedded
players on other sites. Can be True (=always allowed),
False (=never allowed), None (=unknown), or a string