mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-29 03:23:02 +00:00
[youtube] Don't pollute default query dict (closes #17593)
This commit is contained in:
parent
1084563eaa
commit
c11485162b
1 changed files with 3 additions and 1 deletions
|
@ -259,7 +259,9 @@ def warn(message):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _download_webpage_handle(self, *args, **kwargs):
|
def _download_webpage_handle(self, *args, **kwargs):
|
||||||
kwargs.setdefault('query', {})['disable_polymer'] = 'true'
|
query = kwargs.get('query', {}).copy()
|
||||||
|
query['disable_polymer'] = 'true'
|
||||||
|
kwargs['query'] = query
|
||||||
return super(YoutubeBaseInfoExtractor, self)._download_webpage_handle(
|
return super(YoutubeBaseInfoExtractor, self)._download_webpage_handle(
|
||||||
*args, **compat_kwargs(kwargs))
|
*args, **compat_kwargs(kwargs))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue