Skip to content

Commit

Permalink
[ie/youtube] Fix player_params arg being converted to lowercase
Browse files Browse the repository at this point in the history
Fix bug in ba06d77

Authored by: coletdjnz
  • Loading branch information
coletdjnz committed Jul 29, 2023
1 parent 6148833 commit 546b2c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/extractor/youtube.py
Expand Up @@ -3597,7 +3597,7 @@ def _extract_player_response(self, client, video_id, master_ytcfg, player_ytcfg,
if _split_innertube_client(client)[0] == 'android':
yt_query['params'] = 'CgIQBg=='

pp_arg = self._configuration_arg('player_params', [None])[0]
pp_arg = self._configuration_arg('player_params', [None], casesense=True)[0]
if pp_arg:
yt_query['params'] = pp_arg

Expand Down Expand Up @@ -4018,7 +4018,7 @@ def _download_player_responses(self, url, smuggled_data, video_id, webpage_url):
webpage = None
if 'webpage' not in self._configuration_arg('player_skip'):
query = {'bpctr': '9999999999', 'has_verified': '1'}
pp = self._configuration_arg('player_params', [None])[0]
pp = self._configuration_arg('player_params', [None], casesense=True)[0]
if pp:
query['pp'] = pp
webpage = self._download_webpage(
Expand Down

0 comments on commit 546b2c2

Please sign in to comment.