diff options
author | coletdjnz <colethedj@protonmail.com> | 2021-05-20 10:12:53 +0000 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-20 15:56:57 +0530 |
commit | 00ae27690daea37372490f6c0c45d0f14b9feecc (patch) | |
tree | 9de6fbcaef9b8c739faedbba4c147d166a9bdfdd | |
parent | 9d5d4d64f8d2e7dc3d45e37ac3a34a79ac29be57 (diff) | |
download | hypervideo-pre-00ae27690daea37372490f6c0c45d0f14b9feecc.tar.lz hypervideo-pre-00ae27690daea37372490f6c0c45d0f14b9feecc.tar.xz hypervideo-pre-00ae27690daea37372490f6c0c45d0f14b9feecc.zip |
[youtube] Add `html5=1` param to `get_video_info` page requests (#329)
Workaround for #319, https://github.com/ytdl-org/youtube-dl/issues/29086
Authored by: colethedj
-rw-r--r-- | yt_dlp/extractor/youtube.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 3f021c281..48b489523 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -1903,7 +1903,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'el': 'detailpage', 'c': 'WEB_REMIX', 'cver': '0.1', - 'cplayer': 'UNIPLAYER' + 'cplayer': 'UNIPLAYER', + 'html5': '1', }, fatal=False)), lambda x: x['player_response'][0], compat_str) or '{}', video_id) @@ -1929,6 +1930,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'unable to download video info webpage', query={ 'video_id': video_id, 'eurl': 'https://youtube.googleapis.com/v/' + video_id, + 'html5': '1', }, fatal=False)), lambda x: x['player_response'][0], compat_str) or '{}', video_id) |