mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 05:13:21 +00:00
[youtube] Show if video is embeddable in info
Closes https://github.com/ytdl-org/youtube-dl/issues/27730
This commit is contained in:
parent
4084f235eb
commit
5ac2324460
|
@ -1817,6 +1817,9 @@ def extract_unavailable_message():
|
||||||
if not isinstance(video_info, dict):
|
if not isinstance(video_info, dict):
|
||||||
video_info = {}
|
video_info = {}
|
||||||
|
|
||||||
|
playable_in_embed = try_get(
|
||||||
|
player_response, lambda x: x['playabilityStatus']['playableInEmbed'])
|
||||||
|
|
||||||
video_details = try_get(
|
video_details = try_get(
|
||||||
player_response, lambda x: x['videoDetails'], dict) or {}
|
player_response, lambda x: x['videoDetails'], dict) or {}
|
||||||
|
|
||||||
|
@ -2538,6 +2541,7 @@ def decrypt_sig(mobj):
|
||||||
'release_date': release_date,
|
'release_date': release_date,
|
||||||
'release_year': release_year,
|
'release_year': release_year,
|
||||||
'subscriber_count': subscriber_count,
|
'subscriber_count': subscriber_count,
|
||||||
|
'playable_in_embed': playable_in_embed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue