diff options
author | Niklas Haas <git@haasn.xyz> | 2018-04-29 11:23:23 +0200 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2018-04-29 22:35:16 +0700 |
commit | 30226342ab346263b684170c4ce7d5266fec212e (patch) | |
tree | f3e8e7eb8e5a837c6d2de2b23d5b97b18912aae6 | |
parent | 01aec8488084e62aa188b5167e57d01ef66cd256 (diff) |
[youtube] Correctly disable polymer on all requests
Rather than just the one that use the _download_webpage helper. The need
for this was made apparent by 0fe7783e, which refactored
_download_json in a way that completely avoids the use of
_download_webpage, thus breaking youtube.
Fixes #16323
-rw-r--r-- | youtube_dl/extractor/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index e7bd1f18f..04aeb91af 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -246,9 +246,9 @@ class YoutubeBaseInfoExtractor(InfoExtractor): return True - def _download_webpage(self, *args, **kwargs): + def _download_webpage_handle(self, *args, **kwargs): kwargs.setdefault('query', {})['disable_polymer'] = 'true' - return super(YoutubeBaseInfoExtractor, self)._download_webpage( + return super(YoutubeBaseInfoExtractor, self)._download_webpage_handle( *args, **compat_kwargs(kwargs)) def _real_initialize(self): |