1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 00:07:49 +00:00

[youtube] Don't pollute default query dict (closes #17593)

This commit is contained in:
Sergey M․ 2018-09-17 22:13:39 +07:00
parent 1084563eaa
commit c11485162b
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -259,7 +259,9 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
return True
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(
*args, **compat_kwargs(kwargs))