aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-01-14 14:37:23 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-22 22:38:14 +0530
commit6cfda0582b1307ae31cff676002e5b3e31bb7af2 (patch)
treefbaee6ae00c2201a391bf1cf9105b9bc666d6c3d
parentf76ede8ee407fcaf19d2db2d031711e070749456 (diff)
downloadhypervideo-pre-6cfda0582b1307ae31cff676002e5b3e31bb7af2.tar.lz
hypervideo-pre-6cfda0582b1307ae31cff676002e5b3e31bb7af2.tar.xz
hypervideo-pre-6cfda0582b1307ae31cff676002e5b3e31bb7af2.zip
[documentaion] Document `playable_in_embed`
:ci skip all
-rw-r--r--README.md1
-rw-r--r--youtube_dlc/extractor/common.py4
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2bcab6e0a..c42145d73 100644
--- a/README.md
+++ b/README.md
@@ -802,6 +802,7 @@ The available fields are:
- `age_limit` (numeric): Age restriction for the video (years)
- `is_live` (boolean): Whether this video is a live stream or a fixed-length video
- `was_live` (boolean): Whether this video was originally a live stream
+ - `playable_in_embed` (string): Whether this video is allowed to play in embedded players on other sites
- `start_time` (numeric): Time in seconds where the reproduction should start, as specified in the URL
- `end_time` (numeric): Time in seconds where the reproduction should end, as specified in the URL
- `format` (string): A human-readable description of the format
diff --git a/youtube_dlc/extractor/common.py b/youtube_dlc/extractor/common.py
index 2c4564929..0114d24da 100644
--- a/youtube_dlc/extractor/common.py
+++ b/youtube_dlc/extractor/common.py
@@ -290,6 +290,10 @@ class InfoExtractor(object):
* "start_time" - The start time of the chapter in seconds
* "end_time" - The end time of the chapter in seconds
* "title" (optional, string)
+ 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
+ specifying the criteria for embedability (Eg: 'whitelist').
The following fields should only be used when the video belongs to some logical
chapter or section: