1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-01-21 23:35:38 +00:00

[YouTube] Retain .videoDetails members from all player responses

This commit is contained in:
dirkf 2025-01-20 13:23:54 +00:00
parent b09442a2f4
commit 63fb0fc415

View file

@ -2095,7 +2095,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
if not hls[0] and hls[1]: if not hls[0] and hls[1]:
player_response['streamingData']['hlsManifestUrl'] = hls[1] player_response['streamingData']['hlsManifestUrl'] = hls[1]
else: else:
video_details = merge_dicts(*traverse_obj(
(player_response, api_player_response),
(Ellipsis, 'videoDetails', T(dict))))
player_response.update(api_player_response or {}) player_response.update(api_player_response or {})
player_response['videoDetails'] = video_details
def is_agegated(playability): def is_agegated(playability):
if not isinstance(playability, dict): if not isinstance(playability, dict):