diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-09 21:29:58 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-09 21:29:58 +0530 |
commit | 5ac23244609314e3e76da89a992ae76160a68238 (patch) | |
tree | 532f683df17ad5e1dc299e67116efcd77b2a9d26 | |
parent | 4084f235ebf0ba542832e4d8f9abb6fe4ae1972f (diff) | |
download | hypervideo-pre-5ac23244609314e3e76da89a992ae76160a68238.tar.lz hypervideo-pre-5ac23244609314e3e76da89a992ae76160a68238.tar.xz hypervideo-pre-5ac23244609314e3e76da89a992ae76160a68238.zip |
[youtube] Show if video is embeddable in info
Closes https://github.com/ytdl-org/youtube-dl/issues/27730
-rw-r--r-- | youtube_dlc/extractor/youtube.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dlc/extractor/youtube.py b/youtube_dlc/extractor/youtube.py index 9c9292a38..44acb069a 100644 --- a/youtube_dlc/extractor/youtube.py +++ b/youtube_dlc/extractor/youtube.py @@ -1817,6 +1817,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor): if not isinstance(video_info, dict): video_info = {} + playable_in_embed = try_get( + player_response, lambda x: x['playabilityStatus']['playableInEmbed']) + video_details = try_get( player_response, lambda x: x['videoDetails'], dict) or {} @@ -2538,6 +2541,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'release_date': release_date, 'release_year': release_year, 'subscriber_count': subscriber_count, + 'playable_in_embed': playable_in_embed, } |