From 546b2c28a106cf8101d481b215b676d1b091d276 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Sun, 30 Jul 2023 10:50:25 +1200 Subject: [PATCH] [ie/youtube] Fix `player_params` arg being converted to lowercase Fix bug in ba06d77a316650ff057347d224b5afa8b203ad65 Authored by: coletdjnz --- yt_dlp/extractor/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 940a4995b..1e16631b1 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3597,7 +3597,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 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 @@ -4018,7 +4018,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 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(