[youtube] Correctly disable polymer on all requests
authorNiklas Haas <git@haasn.xyz>
Sun, 29 Apr 2018 09:23:23 +0000 (11:23 +0200)
committerSergey M <dstftw@gmail.com>
Sun, 29 Apr 2018 15:35:16 +0000 (22:35 +0700)
commit30226342ab346263b684170c4ce7d5266fec212e
treef3e8e7eb8e5a837c6d2de2b23d5b97b18912aae6
parent01aec8488084e62aa188b5167e57d01ef66cd256
[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
youtube_dl/extractor/youtube.py