Skip to content

Commit

Permalink
[YouTube] Retain .videoDetails members from all player responses
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf committed Jan 20, 2025
1 parent b09442a commit 63fb0fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,11 @@ def _real_extract(self, url):
if not hls[0] and hls[1]:
player_response['streamingData']['hlsManifestUrl'] = hls[1]
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['videoDetails'] = video_details

def is_agegated(playability):
if not isinstance(playability, dict):
Expand Down

0 comments on commit 63fb0fc

Please sign in to comment.